Gtk.StackSwitcher¶
Example¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.StackSwitcher(**kwargs)¶
- Bases:
- Abstract:
No
The
GtkStackSwitcher
shows a row of buttons to switch betweenGtkStack
pages.An example
Gtk.StackSwitcher
It acts as a controller for the associated
GtkStack
.All the content for the buttons comes from the properties of the stacks [class`Gtk`.StackPage] objects; the button visibility in a
GtkStackSwitcher
widget is controlled by the visibility of the child in theGtkStack
.It is possible to associate multiple
GtkStackSwitcher
widgets with the sameGtkStack
widget.- 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.- Accessibility
GtkStackSwitcher
uses theGtk.AccessibleRole.TAB_LIST
role and uses theGtk.AccessibleRole.TAB
for its buttons.- Orientable
Since GTK 4.4,
GtkStackSwitcher
implementsGtkOrientable
allowing the stack switcher to be made vertical withgtk_orientable_set_orientation()
.