Module: Gtk::StyleProvider

Defined in:
(unknown)

Overview

GtkStyleProvider is an interface used to provide style information to a Gtk::StyleContext. See gtk_style_context_add_provider() and gtk_style_context_add_provider_for_screen().

Instance Method Summary collapse

Instance Method Details

#get_icon_factory(provider, path) ⇒ Gtk::IconFactory

Returns The icon factory to use for path, or nil.

Parameters:

  • provider (Gtk::StyleProvider)

    a Gtk::StyleProvider

  • path (Gtk::WidgetPath)

    Gtk::WidgetPath to query

Returns:

#get_style(provider, path) ⇒ Gtk::StyleProperties

style settings affecting path

Parameters:

  • provider (Gtk::StyleProvider)

    a Gtk::StyleProvider

  • path (Gtk::WidgetPath)

    Gtk::WidgetPath to query

Returns:

#get_style_property(provider, path, state, pspec, value) ⇒ TrueClass

Returns true if the property was found and has a value, false otherwise.

Parameters:

  • provider (Gtk::StyleProvider)

    a Gtk::StyleProvider

  • path (Gtk::WidgetPath)

    Gtk::WidgetPath to query

  • state (Gtk::StateFlags)

    state to query the style property for

  • pspec (GObject::ParamSpec)

    The GParam::Spec to query

  • value (GObject::Value)

    return location for the property value

Returns:

  • (TrueClass)

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