Top | ![]() |
![]() |
![]() |
![]() |
GtkStyleProvider is an interface used to provide style information to a GtkStyleContext.
See gtk_style_context_add_provider()
and gtk_style_context_add_provider_for_screen()
.
gboolean gtk_style_provider_get_style_property (GtkStyleProvider *provider
,GtkWidgetPath *path
,GtkStateFlags state
,GParamSpec *pspec
,GValue *value
);
Looks up a widget style property as defined by provider
for
the widget represented by path
.
provider |
||
path |
GtkWidgetPath to query |
|
state |
state to query the style property for |
|
pspec |
The GParamSpec to query |
|
value |
return location for the property value. |
[out] |
Since: 3.0
struct GtkStyleProviderIface { gboolean (* get_style_property) (GtkStyleProvider *provider, GtkWidgetPath *path, GtkStateFlags state, GParamSpec *pspec, GValue *value); };
#define GTK_STYLE_PROVIDER_PRIORITY_FALLBACK 1
The priority used for default style information that is used in the absence of themes.
Note that this is not very useful for providing default
styling for custom style classes - themes are likely to
override styling provided at this priority with
catch-all * {...}
rules.
#define GTK_STYLE_PROVIDER_PRIORITY_THEME 200
The priority used for style information provided by themes.
#define GTK_STYLE_PROVIDER_PRIORITY_SETTINGS 400
The priority used for style information provided via GtkSettings.
This priority is higher than GTK_STYLE_PROVIDER_PRIORITY_THEME to let settings override themes.
#define GTK_STYLE_PROVIDER_PRIORITY_APPLICATION 600
A priority that can be used when adding a GtkStyleProvider for application-specific style information.