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
ThemingEngineGidBuilder builder() static nothrowGet builder for [gtk.theming_engine.ThemingEngine] Returns: New builder objectstring 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 directionpango.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 directionvoid 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 #GtkWidgetPathvoid 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 flagsvoid 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]).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...Fluent builder for gtk.theming_engine.ThemingEngine
Methods