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 { ... }
}