Interface

GtkStyleProvider

Description [src]

interface Gtk.StyleProvider : GObject.Object

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().

Prerequisite

In order to implement StyleProvider, your type must inherit fromGObject.

Instance methods

gtk_style_provider_get_icon_factory

Returns the GtkIconFactory defined to be in use for path, or NULL if none is defined.

deprecated: 3.8 since: 3.0

gtk_style_provider_get_style

Returns the style settings affecting a widget defined by path, or NULL if provider doesn’t contemplate styling path.

deprecated: 3.8 since: 3.0

gtk_style_provider_get_style_property

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

since: 3.0

Interface structure

struct GtkStyleProviderIface {
  GtkStyleProperties* (* get_style) (
    GtkStyleProvider* provider,
    GtkWidgetPath* path
  );
  gboolean (* get_style_property) (
    GtkStyleProvider* provider,
    GtkWidgetPath* path,
    GtkStateFlags state,
    GParamSpec* pspec,
    GValue* value
  );
  GtkIconFactory* (* get_icon_factory) (
    GtkStyleProvider* provider,
    GtkWidgetPath* path
  );
  
}

No description available.

Interface members
get_style
GtkStyleProperties* (* get_style) (
    GtkStyleProvider* provider,
    GtkWidgetPath* path
  )
 

No description available.

get_style_property
gboolean (* get_style_property) (
    GtkStyleProvider* provider,
    GtkWidgetPath* path,
    GtkStateFlags state,
    GParamSpec* pspec,
    GValue* value
  )
 

No description available.

get_icon_factory
GtkIconFactory* (* get_icon_factory) (
    GtkStyleProvider* provider,
    GtkWidgetPath* path
  )
 

No description available.

Virtual methods

Gtk.StyleProvider.get_icon_factory

Returns the GtkIconFactory defined to be in use for path, or NULL if none is defined.

deprecated: 3.8 since: 3.0

Gtk.StyleProvider.get_style

Returns the style settings affecting a widget defined by path, or NULL if provider doesn’t contemplate styling path.

deprecated: 3.8 since: 3.0

Gtk.StyleProvider.get_style_property

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

since: 3.0