[][src]Struct cairo::FontFace

pub struct FontFace(_);

Implementations

impl FontFace[src]

pub fn toy_create(
    family: &str,
    slant: FontSlant,
    weight: FontWeight
) -> FontFace
[src]

pub unsafe fn from_raw_full(ptr: *mut cairo_font_face_t) -> FontFace[src]

pub unsafe fn from_raw_none(ptr: *mut cairo_font_face_t) -> FontFace[src]

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

pub fn toy_get_family(&self) -> Option<String>[src]

pub fn toy_get_slant(&self) -> FontSlant[src]

pub fn toy_get_weight(&self) -> FontWeight[src]

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

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

pub fn get_synthesize(&self) -> FtSynthesize[src]

pub fn set_synthesize(&self, synth_flags: FtSynthesize)[src]

pub fn unset_synthesize(&self, synth_flags: FtSynthesize)[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 FontFace[src]

impl Debug for FontFace[src]

impl StaticType for FontFace[src]

Auto Trait Implementations

impl RefUnwindSafe for FontFace

impl !Send for FontFace

impl !Sync for FontFace

impl Unpin for FontFace

impl UnwindSafe for FontFace

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>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> 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, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

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

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

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

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.