[]Struct cairo::ScaledFont

pub struct ScaledFont(_);

Methods

impl ScaledFont[src]

pub fn new(
    font_face: &FontFace,
    font_matrix: &Matrix,
    ctm: &Matrix,
    options: &FontOptions
) -> ScaledFont
[src]

pub fn to_raw_none(&self) -> *mut cairo_scaled_font_t[src]

pub unsafe fn from_raw_full(ptr: *mut cairo_scaled_font_t) -> ScaledFont[src]

pub unsafe fn from_raw_none(ptr: *mut cairo_scaled_font_t) -> ScaledFont[src]

pub fn ensure_status(&self)[src]

pub fn get_type(&self) -> FontType[src]

pub fn get_reference_count(&self) -> usize[src]

pub fn extents(&self) -> FontExtents[src]

pub fn text_extents(&self, text: &str) -> TextExtents[src]

pub fn glyph_extents(&self, glyphs: &[Glyph]) -> TextExtents[src]

pub fn text_to_glyphs(
    &self,
    x: f64,
    y: f64,
    text: &str
) -> (Vec<Glyph>, Vec<TextCluster>)
[src]

pub fn get_font_face(&self) -> FontFace[src]

pub fn get_font_options(&self) -> FontOptions[src]

pub fn get_font_matrix(&self) -> Matrix[src]

pub fn get_ctm(&self) -> Matrix[src]

pub fn get_scale_matrix(&self) -> Matrix[src]

Trait Implementations

impl Clone for ScaledFont

impl Debug for ScaledFont[src]

impl StaticType for ScaledFont

Auto Trait Implementations

impl !Send for ScaledFont

impl !Sync for ScaledFont

impl Unpin for ScaledFont

impl UnwindSafe for ScaledFont

impl RefUnwindSafe for ScaledFont

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]