The GtkStackSwitcher widget acts as a controller for a Gtk.Stack.Gtk_Stack; it shows a row of buttons to switch between the various pages of the associated stack widget.
All the content for the buttons comes from the child properties of the Gtk.Stack.Gtk_Stack; the button visibility in a Gtk.Stack_Switcher.Gtk_Stack_Switcher widget is controlled by the visibility of the child in the Gtk.Stack.Gtk_Stack.
It is possible to associate multiple Gtk.Stack_Switcher.Gtk_Stack_Switcher widgets with the same Gtk.Stack.Gtk_Stack widget.
The GtkStackSwitcher widget was added in 3.10.
# CSS nodes
GtkStackSwitcher has a single CSS node named stackswitcher and style class .stack-switcher.
When circumstances require it, GtkStackSwitcher adds the .needs-attention style class to the widgets representing the stack pages.
function "+"
(Widget : access Gtk_Stack_Switcher_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "+"
(Widget : access Gtk_Stack_Switcher_Record'Class)
return Gtk.Orientable.Gtk_Orientable
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Stack_Switcher
function "-"
(Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Stack_Switcher
function Get_Orientation
(Self : not null access Gtk_Stack_Switcher_Record)
return Gtk.Enums.Gtk_Orientation
function Get_Stack
(Self : not null access Gtk_Stack_Switcher_Record)
return Gtk.Stack.Gtk_Stack
Retrieves the stack. See Gtk.Stack_Switcher.Set_Stack. Since: gtk+ 3.10
the stack, or null if none has been set explicitly.
function Get_Type return Glib.GType
procedure Gtk_New (Self : out Gtk_Stack_Switcher)
Create a new Gtk.Stack_Switcher.Gtk_Stack_Switcher. Since: gtk+ 3.10 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
type Gtk_Stack_Switcher is access all Gtk_Stack_Switcher_Record'Class;
function Gtk_Stack_Switcher_New return Gtk_Stack_Switcher
Create a new Gtk.Stack_Switcher.Gtk_Stack_Switcher. Since: gtk+ 3.10
type Gtk_Stack_Switcher_Record is new Gtk_Box_Record with null record;
Icon_Size_Property : constant Glib.Properties.Property_Int;
Use the "icon-size" property to change the size of the image displayed when a Gtk.Stack_Switcher.Gtk_Stack_Switcher is displaying icons.
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Stack_Switcher_Record, Gtk_Stack_Switcher);
package Implements_Gtk_Orientable is new Glib.Types.Implements
(Gtk.Orientable.Gtk_Orientable, Gtk_Stack_Switcher_Record, Gtk_Stack_Switcher);
procedure Initialize
(Self : not null access Gtk_Stack_Switcher_Record'Class)
Create a new Gtk.Stack_Switcher.Gtk_Stack_Switcher. Since: gtk+ 3.10 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure Set_Orientation
(Self : not null access Gtk_Stack_Switcher_Record;
Orientation : Gtk.Enums.Gtk_Orientation)
procedure Set_Stack
(Self : not null access Gtk_Stack_Switcher_Record;
Stack : access Gtk.Stack.Gtk_Stack_Record'Class)
Sets the stack to control. Since: gtk+ 3.10
a Gtk.Stack.Gtk_Stack
Stack_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Stack.Gtk_Stack