[]Struct cairo::ScaledFont

pub struct ScaledFont(_);

Implementations

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 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]

pub fn set_user_data<T: 'static>(
    &self,
    key: &'static UserDataKey<T>,
    value: Rc<T>
)
[src]

Attach user data to self for the given key.

pub fn get_user_data<T: 'static>(
    &self,
    key: &'static UserDataKey<T>
) -> Option<Rc<T>>
[src]

Return the user data previously attached to self with the given key, if any.

pub fn get_user_data_ptr<T: 'static>(
    &self,
    key: &'static UserDataKey<T>
) -> Option<NonNull<T>>
[src]

Return the user data previously attached to self with the given key, if any, without incrementing the reference count.

The pointer is valid when it is returned from this method, until the cairo object that self represents is destroyed or remove_user_data or set_user_data is called with the same key.

pub fn remove_user_data<T: 'static>(&self, key: &'static UserDataKey<T>)[src]

Unattach from self the user data associated with key, if any. If there is no other Rc strong reference, the data is destroyed.

Trait Implementations

impl Clone for ScaledFont

impl Debug for ScaledFont[src]

impl StaticType for ScaledFont

Auto Trait Implementations

impl RefUnwindSafe for ScaledFont

impl !Send for ScaledFont

impl !Sync for ScaledFont

impl Unpin for ScaledFont

impl UnwindSafe for ScaledFont

Blanket Implementations

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

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

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

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

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

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

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

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

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.