gtk.theming_engine

Module for [ThemingEngine] class

Types 3

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

Methods
GType _gType() @property
ThemingEngine self()Returns `this`, for use in `with` statements.
ThemingEngineGidBuilder builder()Get builder for [gtk.theming_engine.ThemingEngine] Returns: New builder object
string name() @propertyGet `name` property. Returns: 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 ...
gtk.theming_engine.ThemingEngine load(string name)Loads and initializes a theming engine module from the standard directories.
void getBackgroundColor(gtk.types.StateFlags state, out gdk.rgba.RGBA color)Gets the background color for a given state.
void getBorder(gtk.types.StateFlags state, out gtk.border.Border border)Gets the border for a given state as a #GtkBorder.
void getBorderColor(gtk.types.StateFlags state, out gdk.rgba.RGBA color)Gets the border color for a given state.
void getColor(gtk.types.StateFlags state, out gdk.rgba.RGBA color)Gets the foreground color for a given state.
gtk.types.TextDirection getDirection()Returns the widget direction used for rendering. Returns: the widget direction
pango.font_description.FontDescription getFont(gtk.types.StateFlags state)Returns the font description for a given state.
gtk.types.JunctionSides getJunctionSides()Returns the widget direction used for rendering. Returns: the widget direction
void getMargin(gtk.types.StateFlags state, out gtk.border.Border margin)Gets the margin for a given state as a #GtkBorder.
void getPadding(gtk.types.StateFlags state, out gtk.border.Border padding)Gets the padding for a given state as a #GtkBorder.
gtk.widget_path.WidgetPath getPath()Returns the widget path used for style matching. Returns: A #GtkWidgetPath
void getProperty(string property, gtk.types.StateFlags state, out gobject.value.Value value)Gets a property value as retrieved from the style settings that apply to the currently rendered element.
gdk.screen.Screen getScreen()Returns the #GdkScreen to which engine currently rendering to. Returns: a #GdkScreen, or null.
gtk.types.StateFlags getState()returns the state used when rendering. Returns: the state flags
void getStyleProperty(string propertyName, out gobject.value.Value value)Gets the value for a widget style property.
bool hasClass(string styleClass)Returns true if the currently rendered contents have defined the given class name.
bool hasRegion(string styleRegion, out gtk.types.RegionFlags flags)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.
bool lookupColor(string colorName, out gdk.rgba.RGBA color)Looks up and resolves a color name in the current style’s color map.
bool stateIsRunning(gtk.types.StateType state, out double progress)Returns true if there is a transition animation running for the current region (see [gtk.style_context.StyleContext.pushAnimatableRegion]).
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T name(string propval)Set `name` property. Params: propval = The theming engine name, this name will be used when registering custom properties, for a theming engine named "Clearlooks" registering a "glossy" custom prop...

Fluent builder for [gtk.theming_engine.ThemingEngine]