:right-sidebar: True ViewSwitcher =================================================================== .. currentmodule:: gi.repository.Adw .. class:: ViewSwitcher(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` :Constructors: :: ViewSwitcher(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: ViewSwitcher :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``AdwViewSwitcher``. Methods ------- .. rst-class:: interim-class .. class:: ViewSwitcher :no-index: .. method:: get_policy() -> ~gi.repository.Adw.ViewSwitcherPolicy Gets the policy of ``self``. .. method:: get_stack() -> ~gi.repository.Adw.ViewStack | None Gets the stack controlled by ``self``. .. method:: set_policy(policy: ~gi.repository.Adw.ViewSwitcherPolicy) -> None Sets the policy of ``self``. :param policy: the new policy .. method:: set_stack(stack: ~gi.repository.Adw.ViewStack | None = None) -> None Sets the stack controlled by ``self``. :param stack: a stack Properties ---------- .. rst-class:: interim-class .. class:: ViewSwitcher :no-index: .. attribute:: props.policy :type: ~gi.repository.Adw.ViewSwitcherPolicy The policy to determine which mode to use. .. attribute:: props.stack :type: ~gi.repository.Adw.ViewStack The stack the view switcher controls.