gtk.style_provider_mixin
Module for [StyleProvider] interface mixin
Templates 2
tmplStyleProviderT()
GtkStyleProvider is an interface used to provide style information to a #GtkStyleContext. See [gtk.style_context.StyleContext.addProvider] and [gtk.style_context.StyleContext.addProviderForScreen].
Functions
gtk.icon_factory.IconFactory getIconFactory(gtk.widget_path.WidgetPath path)
Returns the #GtkIconFactory defined to be in use for path, or null if none is defined.
Parameters
path | #GtkWidgetPath to query |
Returns
The icon factory to use for path, or null
Deprecated
Will always return null for all GTK-provided style providers.
gtk.style_properties.StyleProperties getStyle(gtk.widget_path.WidgetPath path)
Returns the style settings affecting a widget defined by path, or null if provider doesn’t contemplate styling path.
Parameters
path | #GtkWidgetPath to query |
Returns
a #GtkStyleProperties containing the
style settings affecting path
Deprecated
Will always return null for all GTK-provided style providers
as the interface cannot correctly work the way CSS is specified.
bool getStyleProperty(gtk.widget_path.WidgetPath path, gtk.types.StateFlags state, gobject.param_spec.ParamSpec pspec, out gobject.value.Value value)
Looks up a widget style property as defined by provider for the widget represented by path.
Parameters
path | #GtkWidgetPath to query |
state | state to query the style property for |
pspec | The #GParamSpec to query |
value | return location for the property value |
Returns
true if the property was found and has a value, false otherwise
tmplStyleProviderGidBuilderT()