Trait gtk::prelude::StyleContextExt [] [src]

pub trait StyleContextExt {
    fn add_class(&self, class_name: &str);
    fn add_provider<P: IsA<StyleProvider>>(&self, provider: &P, priority: u32);
    fn add_region(&self, region_name: &str, flags: RegionFlags);
    fn get_background_color(&self, state: StateFlags) -> RGBA;
    fn get_border_color(&self, state: StateFlags) -> RGBA;
    fn get_color(&self, state: StateFlags) -> RGBA;
    fn get_direction(&self) -> TextDirection;
    fn get_frame_clock(&self) -> Option<FrameClock>;
    fn get_junction_sides(&self) -> JunctionSides;
    fn get_parent(&self) -> Option<StyleContext>;
    fn get_scale(&self) -> i32;
    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 lookup_color(&self, color_name: &str) -> Option<RGBA>;
    fn lookup_icon_set(&self, stock_id: &str) -> Option<IconSet>;
    fn pop_animatable_region(&self);
    fn remove_class(&self, class_name: &str);
    fn remove_provider<P: IsA<StyleProvider>>(&self, provider: &P);
    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_frame_clock(&self, frame_clock: &FrameClock);
    fn set_junction_sides(&self, sides: JunctionSides);
    fn set_parent<'a, P: Into<Option<&'a StyleContext>>>(&self, parent: P);
    fn set_scale(&self, scale: i32);
    fn set_screen(&self, screen: &Screen);
    fn set_state(&self, flags: StateFlags);
    fn state_is_running(&self, state: StateType) -> Option<f64>;
    fn to_string(&self, flags: StyleContextPrintFlags) -> String;
    fn get_property_paint_clock(&self) -> Option<FrameClock>;
    fn set_property_paint_clock(&self, paint_clock: Option<&FrameClock>);
    fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64;
}

Required Methods

Implementors