
Gnome::Gtk3::StyleProvider
Interface to provide style information to Gnome::Gtk3::StyleContext
Description
Gnome::Gtk3::StyleProvider is an interface used to provide style information to a Gnome::Gtk3::StyleContext. See gtk_style_context_add_provider()
and gtk_style_context_add_provider_for_screen()
.
See Also
Gnome::Gtk3::StyleContext, Gnome::Gtk3::CssProvider
Synopsis
Declaration
unit role Gnome::Gtk3::StyleProvider;
Types
class GtkStyleProviderIface
___get_style: Gets a set of style information that applies to a widget path.
___get_style_property: Gets the value of a widget style property that applies to a widget path.
___get_icon_factory: Gets the icon factory that applies to a widget path.
enum GtkStyleProviderPriority
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.
GTK_STYLE_PROVIDER_PRIORITY_THEME(200): The priority used for style information provided by themes.
GTK_STYLE_PROVIDER_PRIORITY_SETTINGS(400): The priority used for style information provided via Gnome::Gtk3::Settings. This priority is higher than GTK_STYLE_PROVIDER_PRIORITY_THEME to let settings override themes.
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION(600): A priority that can be used when adding a #GtkStyleProvider for application-specific style information.
GTK_STYLE_PROVIDER_PRIORITY_USER(800): The priority used for the style information from `~/.gtk-3.0.css`. You should not use priorities higher than this, to give the user the last word.
[[gtk_] style_provider_] get_style_property
Looks up a widget style property as defined by provider for the widget represented by path.
Returns: 1
if the property was found and has a value, 0
otherwise
Since: 3.0
method gtk_style_provider_get_style_property ( N-GObject $path, GtkStateFlags $state, GParamSpec $pspec, N-GObject $value --> Int )
N-GObject $path; Gnome::Gtk3::WidgetPath to query
GtkStateFlags $state; state to query the style property for
GParamSpec $pspec; The
GParamSpec
to queryN-GObject $value; (out): return location for the property value