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 _getGType() static nothrow
GType _gType() @property nothrow
ThemingEngine self() nothrowReturns `this`, for use in `with` statements.
ThemingEngineGidBuilder builder() static nothrowGet builder for [gtk.theming_engine.ThemingEngine] Returns: New builder object
string name() @property nothrowGet `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) static nothrowLoads and initializes a theming engine module from the standard directories.
void getBackgroundColor(gtk.types.StateFlags state, out gdk.rgba.RGBA color) nothrowGets the background color for a given state.
void getBorder(gtk.types.StateFlags state, out gtk.border.Border border) nothrowGets the border for a given state as a #GtkBorder.
void getBorderColor(gtk.types.StateFlags state, out gdk.rgba.RGBA color) nothrowGets the border color for a given state.
void getColor(gtk.types.StateFlags state, out gdk.rgba.RGBA color) nothrowGets the foreground color for a given state.
gtk.types.TextDirection getDirection() nothrowReturns the widget direction used for rendering. Returns: the widget direction
pango.font_description.FontDescription getFont(gtk.types.StateFlags state) nothrowReturns the font description for a given state.
gtk.types.JunctionSides getJunctionSides() nothrowReturns the widget direction used for rendering. Returns: the widget direction
void getMargin(gtk.types.StateFlags state, out gtk.border.Border margin) nothrowGets the margin for a given state as a #GtkBorder.
void getPadding(gtk.types.StateFlags state, out gtk.border.Border padding) nothrowGets the padding for a given state as a #GtkBorder.
gtk.widget_path.WidgetPath getPath() nothrowReturns the widget path used for style matching. Returns: A #GtkWidgetPath
void getProperty(string property, gtk.types.StateFlags state, out gobject.value.Value value) nothrowGets a property value as retrieved from the style settings that apply to the currently rendered element.
gdk.screen.Screen getScreen() nothrowReturns the #GdkScreen to which engine currently rendering to. Returns: a #GdkScreen, or null.
gtk.types.StateFlags getState() nothrowreturns the state used when rendering. Returns: the state flags
void getStyleProperty(string propertyName, out gobject.value.Value value) nothrowGets the value for a widget style property.
bool hasClass(string styleClass) nothrowReturns true if the currently rendered contents have defined the given class name.
bool hasRegion(string styleRegion, out gtk.types.RegionFlags flags) nothrowReturns 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) nothrowLooks up and resolves a color name in the current style’s color map.
bool stateIsRunning(gtk.types.StateType state, out double progress) nothrowReturns 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)

Fluent builder implementation template for gtk.theming_engine.ThemingEngine

Methods
T name(string propval) nothrowSet `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...
Methods
ThemingEngine build() nothrowCreate object from builder. Returns: New object