:right-sidebar: True ViewStackPages =================================================================== .. currentmodule:: gi.repository.Adw .. versionadded:: 1.4 .. class:: ViewStackPages(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gio.ListModel`, :class:`~gi.repository.Gtk.SelectionModel` :Constructors: :: ViewStackPages(**properties) Methods ------- .. rst-class:: interim-class .. class:: ViewStackPages :no-index: .. method:: get_selected_page() -> ~gi.repository.Adw.ViewStackPage | None Gets the :obj:`~gi.repository.Adw.ViewStackPage` for the visible child of a view stack Gets the :obj:`~gi.repository.Adw.ViewStackPage` for the visible child of the associated stack. Returns ``NULL`` if there's no selected page. .. versionadded:: 1.4 .. method:: set_selected_page(page: ~gi.repository.Adw.ViewStackPage) -> None Sets the visible child in the associated :obj:`~gi.repository.Adw.ViewStack`. See :obj:`~gi.repository.Adw.ViewStack.props.visible_child`. .. versionadded:: 1.4 :param page: a stack page within the associated stack Properties ---------- .. rst-class:: interim-class .. class:: ViewStackPages :no-index: .. attribute:: props.selected_page :type: ~gi.repository.Adw.ViewStackPage The selected :obj:`~gi.repository.Adw.ViewStackPage` within the :obj:`~gi.repository.Adw.ViewStackPages`. This can be used to keep an up-to-date view of the :obj:`~gi.repository.Adw.ViewStackPage` for The visible :obj:`~gi.repository.Adw.ViewStackPage` within the associated :obj:`~gi.repository.Adw.ViewStackPages`. This can be used to keep an up-to-date view of the visible child. .. versionadded:: 1.4