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§
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) -> SignalHandlerId
👎Deprecated: Since 4.10
Object Safety§
This trait is not object safe.