Index

Package: Style_Properties

Description

package Gtk.Style_Properties is

GtkStyleProperties provides the storage for style information that is used by Gtk.Style_Context.Gtk_Style_Context and other Gtk.Style_Provider.Gtk_Style_Provider implementations.

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

Unless you are writing a Gtk.Style_Provider.Gtk_Style_Provider 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 Gtk.Theming_Engine.Gtk_Theming_Engine instead.

Packages

Implements_Gtk_Style_Provider (new Glib.Types.Implements)

Classes

Gtk_Style_Properties_Record

type Gtk_Style_Properties_Record is new GObject_Record with null record;

Ancestors:

Primitive operations:

Get_Property
Get_Style_Property
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Lookup_Color
Set_Property
Unset_Property

Types

Gtk_Style_Properties

type Gtk_Style_Properties is access all Gtk_Style_Properties_Record'Class;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Self: out Gtk_Style_Properties);

Initialize

procedure Initialize 
(Self: not null access Gtk_Style_Properties_Record'Class);

Gtk_Style_Properties_New

function Gtk_Style_Properties_New return Gtk_Style_Properties;

Get_Type

function Get_Type return Glib.GType;

Clear

procedure Clear 
(Self: not null access Gtk_Style_Properties_Record);
Clears all style information from Props.

Get_Property

procedure Get_Property 
(Self: not null access Gtk_Style_Properties_Record;
Property: UTF8_String;
State: Gtk.Enums.Gtk_State_Flags;
Value: out Glib.Values.GValue;
Exists: out Boolean);
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. Since: gtk+ 3.0 "property": style property name "state": state to retrieve the property value for "value": return location for the style property value.

Set_Property

procedure Set_Property 
(Self: not null access Gtk_Style_Properties_Record;
Property: UTF8_String;
State: Gtk.Enums.Gtk_State_Flags;
Value: in out Glib.Values.GValue);
Sets a styling property in Props. Since: gtk+ 3.0 "property": styling property to set "state": state to set the value for "value": new value for the property

Lookup_Color

function Lookup_Color 
(Self: not null access Gtk_Style_Properties_Record;
Name: UTF8_String) return Gtk.Symbolic_Color.Gtk_Symbolic_Color;

Map_Color

procedure Map_Color 
(Self: not null access Gtk_Style_Properties_Record;
Name: UTF8_String;
Color: Gtk.Symbolic_Color.Gtk_Symbolic_Color);

Merge

procedure Merge 
(Self: not null access Gtk_Style_Properties_Record;
Props_To_Merge: not null access Gtk_Style_Properties_Record'Class;
Replace: Boolean);
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. Since: gtk+ 3.0 "props_to_merge": a second Gtk.Style_Properties.Gtk_Style_Properties "replace": whether to replace values or not

Unset_Property

procedure Unset_Property 
(Self: not null access Gtk_Style_Properties_Record;
Property: UTF8_String;
State: Gtk.Enums.Gtk_State_Flags);
Unsets a style property in Props. Since: gtk+ 3.0 "property": property to unset "state": state to unset

Get_Style_Property

procedure Get_Style_Property 
(Self: not null access Gtk_Style_Properties_Record;
Path: Gtk.Widget.Gtk_Widget_Path;
State: Gtk.Enums.Gtk_State_Flags;
Pspec: in out Glib.Param_Spec;
Value: out Glib.Values.GValue;
Found: out Boolean);