pub trait StyleContextExt: IsA<StyleContext> + 'static {
Show 20 methods
// Provided 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>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static { ... }
}
๐Deprecated: Since 4.10
Provided Methodsยง
fn add_class(&self, class_name: &str)
๐Deprecated: Since 4.10
fn add_provider(&self, provider: &impl IsA<StyleProvider>, priority: u32)
๐Deprecated: Since 4.10
fn border(&self) -> Border
๐Deprecated: Since 4.10
fn color(&self) -> RGBA
๐Deprecated: Since 4.10
fn display(&self) -> Display
๐Deprecated: Since 4.10
fn margin(&self) -> Border
๐Deprecated: Since 4.10
fn padding(&self) -> Border
๐Deprecated: Since 4.10
fn scale(&self) -> i32
๐Deprecated: Since 4.10
fn state(&self) -> StateFlags
๐Deprecated: Since 4.10
fn has_class(&self, class_name: &str) -> bool
๐Deprecated: Since 4.10
fn lookup_color(&self, color_name: &str) -> Option<RGBA>
๐Deprecated: Since 4.10
fn remove_class(&self, class_name: &str)
๐Deprecated: Since 4.10
fn remove_provider(&self, provider: &impl IsA<StyleProvider>)
๐Deprecated: Since 4.10
fn restore(&self)
๐Deprecated: Since 4.10
fn save(&self)
๐Deprecated: Since 4.10
fn set_display(&self, display: &impl IsA<Display>)
๐Deprecated: Since 4.10
fn set_scale(&self, scale: i32)
๐Deprecated: Since 4.10
fn set_state(&self, flags: StateFlags)
๐Deprecated: Since 4.10
fn to_string(&self, flags: StyleContextPrintFlags) -> GString
๐Deprecated: Since 4.10
fn connect_display_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: Fn(&Self) + 'static,
๐Deprecated: Since 4.10
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.