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

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.

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.

Looks up a widget style property as defined by provider for the widget represented by path.

Parameters

path#GtkWidgetPath to query
statestate to query the style property for
pspecThe #GParamSpec to query
valuereturn location for the property value

Returns

true if the property was found and has a value, false otherwise
tmplStyleProviderGidBuilderT()