pub trait StyleContextExt: 'static {
Show 20 methods // Required methods fn add_class(&self, class_name: &str); fn add_provider(&self, provider: &impl IsA<StyleProvider>, priority: u32); fn border(&self) -> Border; fn color(&self) -> RGBA; fn display(&self) -> Display; fn margin(&self) -> Border; fn padding(&self) -> Border; fn scale(&self) -> i32; fn state(&self) -> StateFlags; fn has_class(&self, class_name: &str) -> bool; fn lookup_color(&self, color_name: &str) -> Option<RGBA>; fn remove_class(&self, class_name: &str); fn remove_provider(&self, provider: &impl IsA<StyleProvider>); fn restore(&self); fn save(&self); fn set_display(&self, display: &impl IsA<Display>); fn set_scale(&self, scale: i32); fn set_state(&self, flags: StateFlags); fn to_string(&self, flags: StyleContextPrintFlags) -> GString; fn connect_display_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn add_class(&self, class_name: &str)

source

fn add_provider(&self, provider: &impl IsA<StyleProvider>, priority: u32)

source

fn border(&self) -> Border

source

fn color(&self) -> RGBA

source

fn display(&self) -> Display

source

fn margin(&self) -> Border

source

fn padding(&self) -> Border

source

fn scale(&self) -> i32

source

fn state(&self) -> StateFlags

source

fn has_class(&self, class_name: &str) -> bool

source

fn lookup_color(&self, color_name: &str) -> Option<RGBA>

source

fn remove_class(&self, class_name: &str)

source

fn remove_provider(&self, provider: &impl IsA<StyleProvider>)

source

fn restore(&self)

source

fn save(&self)

source

fn set_display(&self, display: &impl IsA<Display>)

source

fn set_scale(&self, scale: i32)

source

fn set_state(&self, flags: StateFlags)

source

fn to_string(&self, flags: StyleContextPrintFlags) -> GString

source

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

Implementors§