pub trait StyleSchemeExt: IsA<StyleScheme> + Sealed + 'static {
    // Provided methods
    fn authors(&self) -> Vec<GString> { ... }
    fn description(&self) -> Option<GString> { ... }
    fn filename(&self) -> Option<GString> { ... }
    fn id(&self) -> Option<GString> { ... }
    fn name(&self) -> Option<GString> { ... }
    fn style(&self, style_id: &str) -> Option<Style> { ... }
    fn connect_description_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_filename_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_name_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all StyleScheme methods.

Implementors

StyleScheme

Provided Methods§

source

fn authors(&self) -> Vec<GString>

Returns

a None-terminated array containing the self authors or None if no author is specified by the style scheme.

source

fn description(&self) -> Option<GString>

Returns

self description (if defined), or None.

source

fn filename(&self) -> Option<GString>

Returns

self file name if the scheme was created parsing a style scheme file or None in the other cases.

source

fn id(&self) -> Option<GString>

Returns

self id.

source

fn name(&self) -> Option<GString>

Returns

self name.

source

fn style(&self, style_id: &str) -> Option<Style>

style_id

id of the style to retrieve.

Returns

style which corresponds to style_id in the self, or None when no style with this name found. It is owned by self and may not be unref’ed.

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§