Adw.ViewStackPages¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Gio.ListModel (4), Gtk.SelectionModel (11)
- Structs:
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Gio.ListModel (3), Gtk.SelectionModel (9)
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Signals¶
- Inherited:
GObject.Object (1), Gio.ListModel (1), Gtk.SelectionModel (1)
Fields¶
- Inherited:
GObject.Object (1), Gio.ListModel (1), Gtk.SelectionModel (1)
Class Details¶
- class Adw.ViewStackPages(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An auxiliary class used by [class`ViewStack`].
See [property`ViewStack`:py:data::pages<Adw.ViewStackPages.props.pages>].
New in version 1.4.
- get_selected_page()¶
- Returns:
the stack page
- Return type:
Gets the [class`ViewStackPage`] for the visible child of a view stack
Gets the [class`ViewStackPage`] for the visible child of the associated stack.
Returns
NULL
if there’s no selected page.New in version 1.4.
- set_selected_page(page)¶
- Parameters:
page (
Adw.ViewStackPage
) – a stack page within the associated stack
Sets the visible child in the associated [class`ViewStack`].
See [property`ViewStack`:py:data::visible-child<Adw.ViewStackPages.props.visible_child>].
New in version 1.4.
Property Details¶
- Adw.ViewStackPages.props.selected_page¶
- Name:
selected-page
- Type:
- Default Value:
- Flags:
The selected [class`ViewStackPage`] within the [class`ViewStackPages`].
This can be used to keep an up-to-date view of the [class`ViewStackPage`] for The visible [class`ViewStackPage`] within the associated [class`ViewStackPages`].
This can be used to keep an up-to-date view of the visible child.
New in version 1.4.