StyleProperties
Object Hierarchy:
Gtk.StyleProperties
Gtk.StyleProperties
Gtk.StyleProperties
GLib.Object
GLib.Object
GLib.Object->Gtk.StyleProperties
Gtk.StyleProvider
Gtk.StyleProvider
Gtk.StyleProvider->Gtk.StyleProperties
Description:
[
CCode ( type_id =
"gtk_style_properties_get_type ()" ) ]
public class StyleProperties :
Object ,
StyleProvider
GtkStyleProperties provides the storage for style information that is used by StyleContext
and other StyleProvider implementations.
Before style properties can be stored in GtkStyleProperties, they must be registered with
register_property .
Unless you are writing a StyleProvider implementation, you are unlikely to use
this API directly, as @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
ThemingEngine instead.
StyleProperties has been deprecated in GTK 3.16. The CSS machinery does not use it anymore and all users of
this object have been deprecated.
Content:
Static methods:
public static bool lookup_property (string property_name, out StylePropertyParser parse_func, out unowned ParamSpec pspec)
Returns true if a property has been
registered, if pspec
or parse_func
are not null , the
ParamSpec and parsing function will be respectively returned.
public static void register_property (StylePropertyParser ? parse_func, ParamSpec pspec)
Registers a property so it can be used in the CSS file format.
Creation methods:
Methods:
public void @get (StateFlags state, ...)
Retrieves several style property values from
this for a given state.
public void @set (StateFlags state, ...)
Sets several style properties on this
.
public void clear ()
Clears all style information from this
.
public bool get_property (string property, StateFlags state, out Value value)
Gets a style property from this for
the given state.
public void get_valist (StateFlags state, va_list args)
Retrieves several style property values from
this for a given state.
public unowned SymbolicColor lookup_color (string name)
Returns the symbolic color that is mapped to name
.
public void map_color (string name, SymbolicColor color)
Maps color
so it can be referenced by name
.
public void merge (StyleProperties props_to_merge, bool replace)
Merges into this all the style
information contained in props_to_merge
.
public void set_property (string property, StateFlags state, Value value)
Sets a styling property in this .
public void set_valist (StateFlags state, va_list args)
Sets several style properties on this
.
public void unset_property (string property, StateFlags state)
Unsets a style property in this .
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.StyleProvider