Trait gtk::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(&self, state: StateFlags) -> Border;
fn get_border_color(&self, state: StateFlags) -> RGBA;
fn get_color(&self, state: StateFlags) -> RGBA;
fn get_direction(&self) -> TextDirection;
fn get_junction_sides(&self) -> JunctionSides;
fn get_margin(&self, state: StateFlags) -> Border;
fn get_padding(&self, state: StateFlags) -> Border;
fn get_parent(&self) -> Option<StyleContext>;
fn get_path(&self) -> Option<WidgetPath>;
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_junction_sides(&self, sides: JunctionSides);
fn set_parent<'a, P: Into<Option<&'a StyleContext>>>(&self, parent: P);
fn set_path(&self, path: &WidgetPath);
fn set_screen(&self, screen: &Screen);
fn set_state(&self, flags: StateFlags);
fn state_is_running(&self, state: StateType) -> Option<f64>;
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_direction_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_parent_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_screen_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required Methods

Important traits for Vec<u8>

Important traits for Vec<u8>

Implementors