Class

GtkStyleProperties

Description [src]

class Gtk.StyleProperties : GObject.Object {
  /* No available fields */
}

GtkStyleProperties provides the storage for style information that is used by GtkStyleContext and other GtkStyleProvider implementations.

Before style properties can be stored in GtkStyleProperties, they must be registered with gtk_style_properties_register_property().

Unless you are writing a GtkStyleProvider implementation, you are unlikely to use this API directly, as gtk_style_context_get() and its variants are the preferred way to access styling information from widget implementations and theming engine implementations should use the APIs provided by GtkThemingEngine instead.

GtkStyleProperties has been deprecated in GTK 3.16. The CSS machinery does not use it anymore and all users of this object have been deprecated.

Hierarchy

hierarchy this GtkStyleProperties implements_0 GtkStyleProvider this--implements_0 ancestor_0 GObject ancestor_0--this

Ancestors

Implements

Constructors

gtk_style_properties_new

Returns a newly created GtkStyleProperties.

Deprecated since: 3.16

Functions

gtk_style_properties_lookup_property

Returns TRUE if a property has been registered, if pspec or parse_func are not NULL, the GParamSpec and parsing function will be respectively returned.

Available since: 3.0

Deprecated since: 3.8

gtk_style_properties_register_property

Registers a property so it can be used in the CSS file format. This function is the low-level equivalent of gtk_theming_engine_register_property(), if you are implementing a theming engine, you want to use that function instead.

Available since: 3.0

Deprecated since: 3.8

Instance methods

gtk_style_properties_clear

Clears all style information from props.

Deprecated since: 3.16

gtk_style_properties_get

Retrieves several style property values from props for a given state.

Available since: 3.0

Deprecated since: 3.16

gtk_style_properties_get_property

Gets a style property from props for the given state. When done with value, g_value_unset() needs to be called to free any allocated memory.

Available since: 3.0

Deprecated since: 3.16

gtk_style_properties_get_valist

Retrieves several style property values from props for a given state.

Available since: 3.0

Deprecated since: 3.16

gtk_style_properties_lookup_color

Returns the symbolic color that is mapped to name.

Available since: 3.0

Deprecated since: 3.8

gtk_style_properties_map_color

Maps color so it can be referenced by name. See gtk_style_properties_lookup_color()

Available since: 3.0

Deprecated since: 3.8

gtk_style_properties_merge

Merges into props all the style information contained in props_to_merge. If replace is TRUE, the values will be overwritten, if it is FALSE, the older values will prevail.

Available since: 3.0

Deprecated since: 3.16

gtk_style_properties_set

Sets several style properties on props.

Available since: 3.0

Deprecated since: 3.16

gtk_style_properties_set_property

Sets a styling property in props.

Available since: 3.0

Deprecated since: 3.16

gtk_style_properties_set_valist

Sets several style properties on props.

Available since: 3.0

Deprecated since: 3.16

gtk_style_properties_unset_property

Unsets a style property in props.

Available since: 3.0

Deprecated since: 3.16

Methods inherited from GObject (42)
Methods inherited from GtkStyleProvider (3)
gtk_style_provider_get_icon_factory

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

Available since: 3.0

Deprecated since: 3.8

gtk_style_provider_get_style

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

Available since: 3.0

Deprecated since: 3.8

gtk_style_provider_get_style_property

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

Available since: 3.0

Signals

Signals inherited from GObject (1)

Class structure

struct GtkStylePropertiesClass {
  void (* _gtk_reserved1) (
void
  );
  void (* _gtk_reserved2) (
void
  );
  void (* _gtk_reserved3) (
void
  );
  void (* _gtk_reserved4) (
void
  );
  
}
Class members
_gtk_reserved1
void (* _gtk_reserved1) (
void
  )
  No description available.
_gtk_reserved2
void (* _gtk_reserved2) (
void
  )
  No description available.
_gtk_reserved3
void (* _gtk_reserved3) (
void
  )
  No description available.
_gtk_reserved4
void (* _gtk_reserved4) (
void
  )
  No description available.