Trait sourceview5::prelude::StyleContextExt
source · pub trait StyleContextExt: IsA<StyleContext> + Sealed + '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§
sourcefn add_provider(&self, provider: &impl IsA<StyleProvider>, priority: u32)
fn add_provider(&self, provider: &impl IsA<StyleProvider>, priority: u32)
👎Deprecated: Since 4.10
sourcefn state(&self) -> StateFlags
fn state(&self) -> StateFlags
👎Deprecated: Since 4.10
sourcefn lookup_color(&self, color_name: &str) -> Option<RGBA>
fn lookup_color(&self, color_name: &str) -> Option<RGBA>
👎Deprecated: Since 4.10
sourcefn remove_class(&self, class_name: &str)
fn remove_class(&self, class_name: &str)
👎Deprecated: Since 4.10
sourcefn remove_provider(&self, provider: &impl IsA<StyleProvider>)
fn remove_provider(&self, provider: &impl IsA<StyleProvider>)
👎Deprecated: Since 4.10
sourcefn set_display(&self, display: &impl IsA<Display>)
fn set_display(&self, display: &impl IsA<Display>)
👎Deprecated: Since 4.10
sourcefn set_state(&self, flags: StateFlags)
fn set_state(&self, flags: StateFlags)
👎Deprecated: Since 4.10
sourcefn to_string(&self, flags: StyleContextPrintFlags) -> GString
fn to_string(&self, flags: StyleContextPrintFlags) -> GString
👎Deprecated: Since 4.10
sourcefn connect_display_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_display_notify<F>(&self, f: F) -> SignalHandlerId
👎Deprecated: Since 4.10
Object Safety§
This trait is not object safe.