:right-sidebar: True ViewSwitcherBar =================================================================== .. currentmodule:: gi.repository.Adw .. class:: ViewSwitcherBar(**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: :: ViewSwitcherBar(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: ViewSwitcherBar :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``AdwViewSwitcherBar``. Methods ------- .. rst-class:: interim-class .. class:: ViewSwitcherBar :no-index: .. method:: get_reveal() -> bool Gets whether ``self`` should be revealed or hidden. .. method:: get_stack() -> ~gi.repository.Adw.ViewStack | None Gets the stack controlled by ``self``. .. method:: set_reveal(reveal: bool) -> None Sets whether ``self`` should be revealed or hidden. :param reveal: whether to reveal ``self`` .. 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:: ViewSwitcherBar :no-index: .. attribute:: props.reveal :type: bool Whether the bar should be revealed or hidden. .. attribute:: props.stack :type: ~gi.repository.Adw.ViewStack The stack the view switcher controls.