Gtk.Stack_Switcher

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

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
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Stack_Switcher_Record'Class)
return Gtk.Orientable.Gtk_Orientable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Stack_Switcher
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Stack_Switcher
Parameters
Interf
Return Value

Get_Orientation

function Get_Orientation
   (Self : not null access Gtk_Stack_Switcher_Record)
    return Gtk.Enums.Gtk_Orientation
Parameters
Self
Return Value

Get_Stack

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

Parameters
Self
Return Value

the stack, or null if none has been set explicitly.

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_New

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.

Parameters
Self

Gtk_Stack_Switcher

type Gtk_Stack_Switcher is access all Gtk_Stack_Switcher_Record'Class;

Gtk_Stack_Switcher_New

function Gtk_Stack_Switcher_New return Gtk_Stack_Switcher

Create a new Gtk.Stack_Switcher.Gtk_Stack_Switcher. Since: gtk+ 3.10

Return Value

Gtk_Stack_Switcher_Record

type Gtk_Stack_Switcher_Record is new Gtk_Box_Record with null record;

Icon_Size_Property

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.

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Stack_Switcher_Record, Gtk_Stack_Switcher);

Implements_Gtk_Orientable

package Implements_Gtk_Orientable is new Glib.Types.Implements
  (Gtk.Orientable.Gtk_Orientable, Gtk_Stack_Switcher_Record, Gtk_Stack_Switcher);

Initialize

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.

Parameters
Self

Set_Orientation

procedure Set_Orientation
   (Self        : not null access Gtk_Stack_Switcher_Record;
    Orientation : Gtk.Enums.Gtk_Orientation)
Parameters
Self
Orientation

Set_Stack

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

Parameters
Self
Stack

a Gtk.Stack.Gtk_Stack

Stack_Property

Stack_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Stack.Gtk_Stack