Class: Gtk::ThemingEngine
- Inherits:
-
Object
- Object
- Gtk::ThemingEngine
- Defined in:
- (unknown)
Overview
Base class for theming engines.
Instance Method Summary collapse
-
#direction ⇒ Gtk::TextDirection
Returns the widget direction used for rendering.
-
#get(state, array) ⇒ nil
Retrieves several style property values that apply to the currently rendered element.
-
#get_background_color(state, color) ⇒ nil
Gets the background color for a given state.
-
#get_border(state, border) ⇒ nil
Gets the border for a given state as a Gtk::Border.
-
#get_border_color(state, color) ⇒ nil
Gets the border color for a given state.
-
#get_color(state, color) ⇒ nil
Gets the foreground color for a given state.
-
#get_font(state) ⇒ Pango::FontDescription
Returns the font description for a given state.
-
#get_margin(state, margin) ⇒ nil
Gets the margin for a given state as a Gtk::Border.
-
#get_padding(state, padding) ⇒ nil
Gets the padding for a given state as a Gtk::Border.
-
#get_property(property, state, value) ⇒ nil
Gets a property value as retrieved from the style settings that apply to the currently rendered element.
-
#get_style(array) ⇒ nil
Retrieves several widget style properties from engine according to the currently rendered content’s style.
-
#get_style_property(property_name, value) ⇒ nil
Gets the value for a widget style property.
-
#get_style_valist(args) ⇒ nil
Retrieves several widget style properties from engine according to the currently rendered content’s style.
-
#get_valist(state, args) ⇒ nil
Retrieves several style property values that apply to the currently rendered element.
-
#has_class(style_class) ⇒ TrueClass
Returns true if the currently rendered contents have defined the given class name.
-
#has_region(style_region, flags) ⇒ TrueClass
Returns true if the currently rendered contents have the region defined.
-
#junction_sides ⇒ Gtk::JunctionSides
Returns the widget direction used for rendering.
-
#lookup_color(color_name, color) ⇒ TrueClass
Looks up and resolves a color name in the current style’s color map.
-
#name ⇒ String
The theming engine name, this name will be used when registering custom properties, for a theming engine named “Clearlooks” registering a “glossy” custom property, it could be referenced in the CSS file as.
-
#name=(name) ⇒ String
The theming engine name, this name will be used when registering custom properties, for a theming engine named “Clearlooks” registering a “glossy” custom property, it could be referenced in the CSS file as.
-
#path ⇒ Gtk::WidgetPath
Returns the widget path used for style matching.
-
#screen ⇒ Gdk::Screen
Returns the Gdk::Screen to which engine currently rendering to.
-
#state ⇒ Gtk::StateFlags
returns the state used when rendering.
-
#state_is_running(state, progress) ⇒ TrueClass
Returns true if there is a transition animation running for the current region (see gtk_style_context_push_animatable_region()).
Instance Method Details
#direction ⇒ Gtk::TextDirection
Returns the widget direction used for rendering.
#get(state, array) ⇒ nil
Retrieves several style property values that apply to the currently rendered element.
#get_background_color(state, color) ⇒ nil
Gets the background color for a given state.
#get_border(state, border) ⇒ nil
Gets the border for a given state as a Gtk::Border.
#get_border_color(state, color) ⇒ nil
Gets the border color for a given state.
#get_color(state, color) ⇒ nil
Gets the foreground color for a given state.
#get_font(state) ⇒ Pango::FontDescription
Returns the font description for a given state.
#get_margin(state, margin) ⇒ nil
Gets the margin for a given state as a Gtk::Border.
#get_padding(state, padding) ⇒ nil
Gets the padding for a given state as a Gtk::Border.
#get_property(property, state, value) ⇒ nil
Gets a property value as retrieved from the style settings that apply to the currently rendered element.
#get_style(array) ⇒ nil
Retrieves several widget style properties from engine according to the currently rendered content’s style.
#get_style_property(property_name, value) ⇒ nil
Gets the value for a widget style property.
#get_style_valist(args) ⇒ nil
Retrieves several widget style properties from engine according to the currently rendered content’s style.
#get_valist(state, args) ⇒ nil
Retrieves several style property values that apply to the currently rendered element.
#has_class(style_class) ⇒ TrueClass
Returns true if the currently rendered contents have defined the given class name.
#has_region(style_region, flags) ⇒ TrueClass
Returns true if the currently rendered contents have the region defined. If flags_return is not nil, it is set to the flags affecting the region.
#junction_sides ⇒ Gtk::JunctionSides
Returns the widget direction used for rendering.
#lookup_color(color_name, color) ⇒ TrueClass
Looks up and resolves a color name in the current style’s color map.
#name ⇒ String
The theming engine name, this name will be used when registering custom properties, for a theming engine named “Clearlooks” registering a “glossy” custom property, it could be referenced in the CSS file as
|[ -Clearlooks-glossy: true; ]|
#name=(name) ⇒ String
The theming engine name, this name will be used when registering custom properties, for a theming engine named “Clearlooks” registering a “glossy” custom property, it could be referenced in the CSS file as
|[ -Clearlooks-glossy: true; ]|
#path ⇒ Gtk::WidgetPath
Returns the widget path used for style matching.
#screen ⇒ Gdk::Screen
Returns the Gdk::Screen to which engine currently rendering to.
#state ⇒ Gtk::StateFlags
returns the state used when rendering.
#state_is_running(state, progress) ⇒ TrueClass
Returns true if there is a transition animation running for the current region (see gtk_style_context_push_animatable_region()).
If progress is not nil, the animation progress will be returned there, 0.0 means the state is closest to being false, while 1.0 means it’s closest to being true. This means transition animations will run from 0 to 1 when state is being set to true and from 1 to 0 when it’s being set to false.