: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` An auxiliary class used by :obj:`~gi.repository.Adw.ViewStack`\. See :obj:`~gi.repository.Adw.ViewStack.props.pages`\. 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 type of the None singleton. .. versionadded:: 1.4