Class
GtkStyleProperties
Description [src]
class Gtk.StyleProperties : GObject.Object
implements Gtk.StyleProvider {
/* 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.
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.
deprecated: 3.8 since: 3.0
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.
deprecated: 3.8 since: 3.0
Instance methods
gtk_style_properties_get
Retrieves several style property values from props for a
given state.
deprecated: 3.16 since: 3.0
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.
deprecated: 3.16 since: 3.0
gtk_style_properties_get_valist
Retrieves several style property values from props for a given state.
deprecated: 3.16 since: 3.0
gtk_style_properties_lookup_color
Returns the symbolic color that is mapped
to name.
deprecated: 3.8 since: 3.0
gtk_style_properties_map_color
Maps color so it can be referenced by name. See gtk_style_properties_lookup_color().
deprecated: 3.8 since: 3.0
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.
deprecated: 3.16 since: 3.0
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.
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
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GtkStylePropertiesClass {
void (* _gtk_reserved1) (
void
);
void (* _gtk_reserved2) (
void
);
void (* _gtk_reserved3) (
void
);
void (* _gtk_reserved4) (
void
);
}
No description available.
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.