ThemingEngine
Object Hierarchy:
Description:
ThemingEngine was the object used for rendering themed content in GTK+ widgets.
It used to allow overriding GTK+'s default implementation of rendering functions by allowing engines to be loaded as modules.
ThemingEngine has been deprecated in GTK+ 3.14 and will be ignored for rendering. The advancements in CSS theming are good enough to allow themers to achieve their goals without the need to modify source code.
Namespace: Gtk
Package: gtk+-3.0
Content:
Properties:
- public string name { owned get; construct; }
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
Static methods:
- public static unowned ThemingEngine? load (string name)
Loads and initializes a theming engine module from the standard directories.
- public static void register_property (string name_space, StylePropertyParser? parse_func, ParamSpec pspec)
Registers a property so it can be used in the CSS file format, on the CSS file the property will look like "-${
name_space
}-${property_name}".
Creation methods:
- protected ThemingEngine ()
Methods:
- public void @get (StateFlags state, ...)
Retrieves several style property values that apply to the currently rendered element.
- public RGBA get_background_color (StateFlags state)
Gets the background color for a given state.
- public Border get_border (StateFlags state)
Gets the border for a given state as a Border.
- public RGBA get_border_color (StateFlags state)
Gets the border color for a given state.
- public RGBA get_color (StateFlags state)
Gets the foreground color for a given state.
- public TextDirection get_direction ()
Returns the widget direction used for rendering.
- public unowned FontDescription get_font (StateFlags state)
Returns the font description for a given state.
- public JunctionSides get_junction_sides ()
Returns the widget direction used for rendering.
- public Border get_margin (StateFlags state)
Gets the margin for a given state as a Border.
- public Border get_padding (StateFlags state)
Gets the padding for a given state as a Border.
- public unowned WidgetPath get_path ()
Returns the widget path used for style matching.
- public Value get_property (string property, StateFlags state)
Gets a property value as retrieved from the style settings that apply to the currently rendered element.
- public unowned Screen? get_screen ()
Returns the Screen to which this currently rendering to.
- public StateFlags get_state ()
returns the state used when rendering.
- public void get_style (...)
Retrieves several widget style properties from this according to the currently rendered content’s style.
- public void get_style_property (string property_name, ref Value value)
Gets the value for a widget style property.
- public void get_style_valist (va_list args)
Retrieves several widget style properties from this according to the currently rendered content’s style.
- public void get_valist (StateFlags state, va_list args)
Retrieves several style property values that apply to the currently rendered element.
- public bool has_class (string style_class)
Returns true if the currently rendered contents have defined the given class name.
- public bool has_region (string style_region, out RegionFlags flags)
Returns true if the currently rendered contents have the region defined.
- public bool lookup_color (string color_name, out RGBA color)
Looks up and resolves a color name in the current style’s color map.
- public virtual void render_activity (Context cr, double x, double y, double width, double height)
- public virtual void render_arrow (Context cr, double angle, double x, double y, double size)
- public virtual void render_background (Context cr, double x, double y, double width, double height)
- public virtual void render_check (Context cr, double x, double y, double width, double height)
- public virtual void render_expander (Context cr, double x, double y, double width, double height)
- public virtual void render_extension (Context cr, double x, double y, double width, double height, PositionType gap_side)
- public virtual void render_focus (Context cr, double x, double y, double width, double height)
- public virtual void render_frame (Context cr, double x, double y, double width, double height)
- public virtual void render_frame_gap (Context cr, double x, double y, double width, double height, PositionType gap_side, double xy0_gap, double xy1_gap)
- public virtual void render_handle (Context cr, double x, double y, double width, double height)
- public virtual void render_icon (Context cr, Pixbuf pixbuf, double x, double y)
- public virtual Pixbuf render_icon_pixbuf (IconSource source, IconSize size)
- public virtual void render_icon_surface (Context cr, Surface surface, double x, double y)
- public virtual void render_layout (Context cr, double x, double y, Layout layout)
- public virtual void render_line (Context cr, double x0, double y0, double x1, double y1)
- public virtual void render_option (Context cr, double x, double y, double width, double height)
- public virtual void render_slider (Context cr, double x, double y, double width, double height, Orientation orientation)
- public bool state_is_running (StateType state, out double progress)
Returns true if there is a transition animation running for the current region (see push_animatable_region).
Inherited Members:
All known members inherited from class GLib.Object