FontFamilyExt

Trait FontFamilyExt 

Source
pub trait FontFamilyExt: IsA<FontFamily> + 'static {
    // Provided methods
    fn face(&self, name: Option<&str>) -> Option<FontFace> { ... }
    fn name(&self) -> GString { ... }
    fn is_monospace(&self) -> bool { ... }
    fn is_variable(&self) -> bool { ... }
    fn list_faces(&self) -> Vec<FontFace> { ... }
    fn connect_is_monospace_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_is_variable_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn face(&self, name: Option<&str>) -> Option<FontFace>

Source

fn name(&self) -> GString

Source

fn is_monospace(&self) -> bool

Source

fn is_variable(&self) -> bool

Source

fn list_faces(&self) -> Vec<FontFace>

Source

fn connect_is_monospace_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_is_variable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§