[][src]Trait gtk::StyleContextExt

pub trait StyleContextExt: 'static {
    fn add_class(&self, class_name: &str);
fn add_provider<P: IsA<StyleProvider>>(&self, provider: &P, priority: u32);
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_frame_clock(&self) -> Option<FrameClock>;
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_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 list_classes(&self) -> Vec<GString>;
fn lookup_color(&self, color_name: &str) -> Option<RGBA>;
fn remove_class(&self, class_name: &str);
fn remove_provider<P: IsA<StyleProvider>>(&self, provider: &P);
fn restore(&self);
fn save(&self);
fn set_background<P: IsA<Window>>(&self, window: &P);
fn set_frame_clock(&self, frame_clock: &FrameClock);
fn set_junction_sides(&self, sides: JunctionSides);
fn set_parent<P: IsA<StyleContext>>(&self, parent: Option<&P>);
fn set_path(&self, path: &WidgetPath);
fn set_scale(&self, scale: i32);
fn set_screen(&self, screen: &Screen);
fn set_state(&self, flags: StateFlags);
fn get_property_direction(&self) -> TextDirection;
fn set_property_direction(&self, direction: TextDirection);
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) -> SignalHandlerId;
fn connect_property_direction_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_paint_clock_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

fn add_class(&self, class_name: &str)

fn add_provider<P: IsA<StyleProvider>>(&self, provider: &P, priority: u32)

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_frame_clock(&self) -> Option<FrameClock>

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_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 list_classes(&self) -> Vec<GString>

fn lookup_color(&self, color_name: &str) -> Option<RGBA>

fn remove_class(&self, class_name: &str)

fn remove_provider<P: IsA<StyleProvider>>(&self, provider: &P)

fn restore(&self)

fn save(&self)

fn set_background<P: IsA<Window>>(&self, window: &P)

fn set_frame_clock(&self, frame_clock: &FrameClock)

fn set_junction_sides(&self, sides: JunctionSides)

fn set_parent<P: IsA<StyleContext>>(&self, parent: Option<&P>)

fn set_path(&self, path: &WidgetPath)

fn set_scale(&self, scale: i32)

fn set_screen(&self, screen: &Screen)

fn set_state(&self, flags: StateFlags)

fn get_property_direction(&self) -> TextDirection

fn set_property_direction(&self, direction: TextDirection)

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) -> SignalHandlerId

fn connect_property_direction_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_paint_clock_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

Loading content...

Implementors

impl<O: IsA<StyleContext>> StyleContextExt for O[src]

Loading content...