Adw.ViewStackPages¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Gio.ListModel (4), Gtk.SectionModel (2), Gtk.SelectionModel (11)
- Structs:
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
|||
r/w/en |
Signals¶
Fields¶
Class Details¶
- class Adw.ViewStackPages(**kwargs)¶
- Bases:
GObject.Object,Gio.ListModel,Gtk.SectionModel,Gtk.SelectionModel- 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
NULLif 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.item_type¶
- Name:
item-type- Type:
- Default Value:
<GType AdwViewStackPage>- Flags:
The type of the items. See [method`Gio`.ListModel.get_item_type].
New in version 1.9.
- Adw.ViewStackPages.props.n_items¶
-
The number of items. See [method`Gio`.ListModel.get_n_items].
New in version 1.9.
- 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.