pub trait StyleContextExt: IsA<StyleContext> + Sealed + 'static {
Show 40 methods // Provided methods fn add_class(&self, class_name: &str) { ... } fn add_provider(&self, provider: &impl IsA<StyleProvider>, priority: u32) { ... } fn border(&self, state: StateFlags) -> Border { ... } fn color(&self, state: StateFlags) -> RGBA { ... } fn frame_clock(&self) -> Option<FrameClock> { ... } fn junction_sides(&self) -> JunctionSides { ... } fn margin(&self, state: StateFlags) -> Border { ... } fn padding(&self, state: StateFlags) -> Border { ... } fn parent(&self) -> Option<StyleContext> { ... } fn path(&self) -> Option<WidgetPath> { ... } fn style_property_for_state( &self, property: &str, state: StateFlags ) -> Value { ... } fn scale(&self) -> i32 { ... } fn screen(&self) -> Option<Screen> { ... } fn section(&self, property: &str) -> Option<CssSection> { ... } fn state(&self) -> StateFlags { ... } fn style_property(&self, property_name: &str) -> Value { ... } fn has_class(&self, class_name: &str) -> bool { ... } fn list_classes(&self) -> Vec<GString> { ... } 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_frame_clock(&self, frame_clock: &FrameClock) { ... } fn set_junction_sides(&self, sides: JunctionSides) { ... } fn set_parent(&self, parent: Option<&impl IsA<StyleContext>>) { ... } fn set_path(&self, path: &WidgetPath) { ... } fn set_scale(&self, scale: i32) { ... } fn set_screen(&self, screen: &Screen) { ... } fn set_state(&self, flags: StateFlags) { ... } fn to_string(&self, flags: StyleContextPrintFlags) -> Option<GString> { ... } fn direction(&self) -> TextDirection { ... } fn set_direction(&self, direction: TextDirection) { ... } fn paint_clock(&self) -> Option<FrameClock> { ... } fn set_paint_clock(&self, paint_clock: Option<&FrameClock>) { ... } fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_direction_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_paint_clock_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_parent_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_screen_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn add_class(&self, class_name: &str)

source

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

source

fn border(&self, state: StateFlags) -> Border

source

fn color(&self, state: StateFlags) -> RGBA

source

fn frame_clock(&self) -> Option<FrameClock>

source

fn junction_sides(&self) -> JunctionSides

source

fn margin(&self, state: StateFlags) -> Border

source

fn padding(&self, state: StateFlags) -> Border

source

fn parent(&self) -> Option<StyleContext>

source

fn path(&self) -> Option<WidgetPath>

source

fn style_property_for_state(&self, property: &str, state: StateFlags) -> Value

source

fn scale(&self) -> i32

source

fn screen(&self) -> Option<Screen>

source

fn section(&self, property: &str) -> Option<CssSection>

source

fn state(&self) -> StateFlags

source

fn style_property(&self, property_name: &str) -> Value

source

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

source

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

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_frame_clock(&self, frame_clock: &FrameClock)

source

fn set_junction_sides(&self, sides: JunctionSides)

source

fn set_parent(&self, parent: Option<&impl IsA<StyleContext>>)

source

fn set_path(&self, path: &WidgetPath)

source

fn set_scale(&self, scale: i32)

source

fn set_screen(&self, screen: &Screen)

source

fn set_state(&self, flags: StateFlags)

source

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

source

fn direction(&self) -> TextDirection

source

fn set_direction(&self, direction: TextDirection)

source

fn paint_clock(&self) -> Option<FrameClock>

source

fn set_paint_clock(&self, paint_clock: Option<&FrameClock>)

source

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

source

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

source

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

source

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

source

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

Implementors§