Class

GtkThemingEngine

Description [src]

class Gtk.ThemingEngine : GObject.Object {
  parent_object: GObject,
  priv: GtkThemingEnginePrivate*
}

GtkThemingEngine 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.

GtkThemingEngine 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.

Hierarchy

hierarchy this GtkThemingEngine ancestor_0 GObject ancestor_0--this

Ancestors

Functions

gtk_theming_engine_load

Loads and initializes a theming engine module from the standard directories.

gtk_theming_engine_register_property

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}”. being ${property_name} the given to pspec. name_space will usually be the theme engine name.

Available since: 3.0

Deprecated since: 3.8

Instance methods

gtk_theming_engine_get

Retrieves several style property values that apply to the currently rendered element.

Available since: 3.0

gtk_theming_engine_get_background_color

Gets the background color for a given state.

Available since: 3.0

gtk_theming_engine_get_border

Gets the border for a given state as a GtkBorder.

Available since: 3.0

gtk_theming_engine_get_border_color

Gets the border color for a given state.

Available since: 3.0

gtk_theming_engine_get_color

Gets the foreground color for a given state.

Available since: 3.0

gtk_theming_engine_get_direction

Returns the widget direction used for rendering.

Available since: 3.0

Deprecated since: 3.8

gtk_theming_engine_get_font

Returns the font description for a given state.

Available since: 3.0

Deprecated since: 3.8

gtk_theming_engine_get_junction_sides

Returns the widget direction used for rendering.

Available since: 3.0

gtk_theming_engine_get_margin

Gets the margin for a given state as a GtkBorder.

Available since: 3.0

gtk_theming_engine_get_padding

Gets the padding for a given state as a GtkBorder.

Available since: 3.0

gtk_theming_engine_get_path

Returns the widget path used for style matching.

Available since: 3.0

gtk_theming_engine_get_property

Gets a property value as retrieved from the style settings that apply to the currently rendered element.

Available since: 3.0

gtk_theming_engine_get_screen

Returns the GdkScreen to which engine currently rendering to.

gtk_theming_engine_get_state

Returns the state used when rendering.

Available since: 3.0

gtk_theming_engine_get_style

Retrieves several widget style properties from engine according to the currently rendered content’s style.

Available since: 3.0

gtk_theming_engine_get_style_property

Gets the value for a widget style property.

Available since: 3.0

gtk_theming_engine_get_style_valist

Retrieves several widget style properties from engine according to the currently rendered content’s style.

Available since: 3.0

gtk_theming_engine_get_valist

Retrieves several style property values that apply to the currently rendered element.

Available since: 3.0

gtk_theming_engine_has_class

Returns TRUE if the currently rendered contents have defined the given class name.

Available since: 3.0

gtk_theming_engine_has_region

Returns TRUE if the currently rendered contents have the region defined. If flags_return is not NULL, it is set to the flags affecting the region.

Available since: 3.0

gtk_theming_engine_lookup_color

Looks up and resolves a color name in the current style’s color map.

Available since: 3.0

gtk_theming_engine_state_is_running

Returns TRUE if there is a transition animation running for the current region (see gtk_style_context_push_animatable_region()).

Available since: 3.0

Deprecated since: 3.6

Methods inherited from GObject (42)

Properties

Gtk.ThemingEngine:name

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.

Available since: 3.0

Signals

Signals inherited from GObject (1)

Class structure

struct GtkThemingEngineClass {
  GObjectClass parent_class;
  void (* render_line) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x0,
    gdouble y0,
    gdouble x1,
    gdouble y1
  );
  void (* render_background) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  );
  void (* render_frame) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  );
  void (* render_frame_gap) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height,
    GtkPositionType gap_side,
    gdouble xy0_gap,
    gdouble xy1_gap
  );
  void (* render_extension) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height,
    GtkPositionType gap_side
  );
  void (* render_check) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  );
  void (* render_option) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  );
  void (* render_arrow) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble angle,
    gdouble x,
    gdouble y,
    gdouble size
  );
  void (* render_expander) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  );
  void (* render_focus) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  );
  void (* render_layout) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    PangoLayout* layout
  );
  void (* render_slider) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height,
    GtkOrientation orientation
  );
  void (* render_handle) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  );
  void (* render_activity) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  );
  GdkPixbuf* (* render_icon_pixbuf) (
    GtkThemingEngine* engine,
    const GtkIconSource* source,
    GtkIconSize size
  );
  void (* render_icon) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    GdkPixbuf* pixbuf,
    gdouble x,
    gdouble y
  );
  void (* render_icon_surface) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    cairo_surface_t* surface,
    gdouble x,
    gdouble y
  );
  
}
Class members
parent_class
GObjectClass
 

The parent class.

render_line
void (* render_line) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x0,
    gdouble y0,
    gdouble x1,
    gdouble y1
  )
  No description available.
render_background
void (* render_background) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  )
  No description available.
render_frame
void (* render_frame) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  )
  No description available.
render_frame_gap
void (* render_frame_gap) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height,
    GtkPositionType gap_side,
    gdouble xy0_gap,
    gdouble xy1_gap
  )
  No description available.
render_extension
void (* render_extension) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height,
    GtkPositionType gap_side
  )
  No description available.
render_check
void (* render_check) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  )
  No description available.
render_option
void (* render_option) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  )
  No description available.
render_arrow
void (* render_arrow) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble angle,
    gdouble x,
    gdouble y,
    gdouble size
  )
  No description available.
render_expander
void (* render_expander) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  )
  No description available.
render_focus
void (* render_focus) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  )
  No description available.
render_layout
void (* render_layout) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    PangoLayout* layout
  )
  No description available.
render_slider
void (* render_slider) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height,
    GtkOrientation orientation
  )
  No description available.
render_handle
void (* render_handle) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  )
  No description available.
render_activity
void (* render_activity) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    gdouble x,
    gdouble y,
    gdouble width,
    gdouble height
  )
  No description available.
render_icon_pixbuf
GdkPixbuf* (* render_icon_pixbuf) (
    GtkThemingEngine* engine,
    const GtkIconSource* source,
    GtkIconSize size
  )
  No description available.
render_icon
void (* render_icon) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    GdkPixbuf* pixbuf,
    gdouble x,
    gdouble y
  )
  No description available.
render_icon_surface
void (* render_icon_surface) (
    GtkThemingEngine* engine,
    cairo_t* cr,
    cairo_surface_t* surface,
    gdouble x,
    gdouble y
  )
  No description available.

Virtual methods

Gtk.ThemingEngineClass.render_activity
No description available.
Gtk.ThemingEngineClass.render_arrow
No description available.
Gtk.ThemingEngineClass.render_background
No description available.
Gtk.ThemingEngineClass.render_check
No description available.
Gtk.ThemingEngineClass.render_expander
No description available.
Gtk.ThemingEngineClass.render_extension
No description available.
Gtk.ThemingEngineClass.render_focus
No description available.
Gtk.ThemingEngineClass.render_frame
No description available.
Gtk.ThemingEngineClass.render_frame_gap
No description available.
Gtk.ThemingEngineClass.render_handle
No description available.
Gtk.ThemingEngineClass.render_icon
No description available.
Gtk.ThemingEngineClass.render_icon_pixbuf
No description available.
Gtk.ThemingEngineClass.render_icon_surface
No description available.
Gtk.ThemingEngineClass.render_layout
No description available.
Gtk.ThemingEngineClass.render_line
No description available.
Gtk.ThemingEngineClass.render_option
No description available.
Gtk.ThemingEngineClass.render_slider
No description available.