Struct gtk::StyleContext
[−]
pub struct StyleContext(_, _);
Methods
impl StyleContext
[src]
fn new() -> StyleContext
fn add_class(&self, class_name: &str)
fn add_provider<T: IsA<StyleProvider>>(&self, provider: &T, priority: u32)
fn add_region(&self, region_name: &str, flags: RegionFlags)
fn get_direction(&self) -> TextDirection
fn get_junction_sides(&self) -> JunctionSides
fn get_parent(&self) -> Option<StyleContext>
fn get_screen(&self) -> Option<Screen>
fn get_section(&self, property: &str) -> Option<CssSection>
fn get_state(&self) -> StateFlags
fn has_class(&self, class_name: &str) -> bool
fn has_region(&self, region_name: &str) -> Option<RegionFlags>
fn invalidate(&self)
fn list_classes(&self) -> Vec<String>
fn list_regions(&self) -> Vec<String>
fn pop_animatable_region(&self)
fn remove_class(&self, class_name: &str)
fn remove_provider<T: IsA<StyleProvider>>(&self, provider: &T)
fn remove_region(&self, region_name: &str)
fn restore(&self)
fn save(&self)
fn scroll_animations(&self, window: &Window, dx: i32, dy: i32)
fn set_background(&self, window: &Window)
fn set_direction(&self, direction: TextDirection)
fn set_junction_sides(&self, sides: JunctionSides)
fn set_parent(&self, parent: Option<&StyleContext>)
fn set_screen(&self, screen: &Screen)
fn set_state(&self, flags: StateFlags)
fn state_is_running(&self, state: StateType) -> Option<f64>
fn add_provider_for_screen<T: IsA<StyleProvider>>(screen: &Screen,
provider: &T,
priority: u32)
provider: &T,
priority: u32)
fn remove_provider_for_screen<T: IsA<StyleProvider>>(screen: &Screen,
provider: &T)
provider: &T)
fn reset_widgets(screen: &Screen)
fn connect_changed<F: Fn(&StyleContext) + 'static>(&self, f: F) -> u64
Trait Implementations
impl Clone for StyleContext
fn clone(&self) -> StyleContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for StyleContext
impl Hash for StyleContext
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl StaticType for StyleContext
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for StyleContext
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.