type Gtk_Style_Record is new GObject_Record with null record;
type Gtk_Style is access all Gtk_Style_Record'Class;
type Cb_Gtk_Style_Void is not null access procedure (Self : access Gtk_Style_Record'Class);
type Cb_GObject_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class);
Context_Property : constant Glib.Properties.Property_Object;
Signal_Realize : constant Glib.Signal_Name := "realize";
Signal_Unrealize : constant Glib.Signal_Name := "unrealize";
function From_Object_Free
( | B | : access Gtk_Border) return Gtk_Border; |
procedure Gtk_New
( | Style | : out Gtk_Style); |
procedure Initialize
( | Style | : not null access Gtk_Style_Record'Class); |
function Get_Type return Glib.GType;
procedure Gtk_New
( | Self | : out Gtk_Border); |
function Gtk_Border_New return Gtk_Border;
function Border_Get_Type return Glib.GType;
procedure Apply_Default_Background
( | Style | : not null access Gtk_Style_Record; |
Cr | : Cairo.Cairo_Context; | |
Window | : Gdk.Gdk_Window; | |
State_Type | : Gtk.Enums.Gtk_State_Type; | |
X | : Gint; | |
Y | : Gint; | |
Width | : Gint; | |
Height | : Gint); |
function Attach
( | Style | : not null access Gtk_Style_Record; |
Window | : Gdk.Gdk_Window) return Gtk_Style; |
function Copy
( | Style | : not null access Gtk_Style_Record) return Gtk_Style; |
procedure Detach
( | Style | : not null access Gtk_Style_Record); |
procedure Get_Style_Property
( | Style | : not null access Gtk_Style_Record; |
Widget_Type | : GType; | |
Property_Name | : UTF8_String; | |
Value | : in out Glib.Values.GValue); |
function Has_Context
( | Style | : not null access Gtk_Style_Record) return Boolean; |
procedure Lookup_Color
( | Style | : not null access Gtk_Style_Record; |
Color_Name | : UTF8_String; | |
Color | : out Gdk.Color.Gdk_Color; | |
Found | : out Boolean); |
procedure Set_Background
( | Style | : not null access Gtk_Style_Record; |
Window | : Gdk.Gdk_Window; | |
State_Type | : Gtk.Enums.Gtk_State_Type); |
procedure On_Realize
( | Self | : not null access Gtk_Style_Record; |
Call | : Cb_Gtk_Style_Void; | |
After | : Boolean := False); |
procedure On_Realize
( | Self | : not null access Gtk_Style_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Unrealize
( | Self | : not null access Gtk_Style_Record; |
Call | : Cb_Gtk_Style_Void; | |
After | : Boolean := False); |
procedure On_Unrealize
( | Self | : not null access Gtk_Style_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
A Gtk.Style.Gtk_Style object encapsulates the information that provides the look and feel for a widget. <warning> In GTK+ 3.0, GtkStyle has been deprecated and replaced by Gtk.Style_Context.Gtk_Style_Context. </warning> Each Gtk.Widget.Gtk_Widget has an associated Gtk.Style.Gtk_Style object that is used when rendering that widget. Also, a Gtk.Style.Gtk_Style holds information for the five possible widget states though not every widget supports all five states; see Gtk.Enums.Gtk_State_Type.
Usually the Gtk.Style.Gtk_Style for a widget is the same as the default style that is set by GTK+ and modified the theme engine.
Usually applications should not need to use or modify the Gtk.Style.Gtk_Style of their widgets.