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.

deprecated: 3.14 

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.

deprecated: 3.8 since: 3.0

Instance methods

gtk_theming_engine_get

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

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_background_color

Gets the background color for a given state.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_border

Gets the border for a given state as a GtkBorder.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_border_color

Gets the border color for a given state.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_color

Gets the foreground color for a given state.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_direction

Returns the widget direction used for rendering.

deprecated: 3.8 since: 3.0

gtk_theming_engine_get_font

Returns the font description for a given state.

deprecated: 3.8 since: 3.0

gtk_theming_engine_get_junction_sides

Returns the widget direction used for rendering.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_margin

Gets the margin for a given state as a GtkBorder.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_padding

Gets the padding for a given state as a GtkBorder.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_path

Returns the widget path used for style matching.

deprecated: 3.14 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.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_screen

Returns the GdkScreen to which engine currently rendering to.

deprecated: 3.14 

gtk_theming_engine_get_state

Returns the state used when rendering.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_style

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

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_style_property

Gets the value for a widget style property.

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_style_valist

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

deprecated: 3.14 since: 3.0

gtk_theming_engine_get_valist

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

deprecated: 3.14 since: 3.0

gtk_theming_engine_has_class

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

deprecated: 3.14 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.

deprecated: 3.14 since: 3.0

gtk_theming_engine_lookup_color

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

deprecated: 3.14 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()).

deprecated: 3.6 since: 3.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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.

since: 3.0

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

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
  );
  
}

Base class for theming engines.

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.