:right-sidebar: True ViewSwitcherTitle =================================================================== .. currentmodule:: gi.repository.Adw .. deprecated:: 1.4 See `the migration guide `_ .. class:: ViewSwitcherTitle(**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: :: ViewSwitcherTitle(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: ViewSwitcherTitle :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``AdwViewSwitcherTitle``. .. deprecated:: 1.4 See `the migration guide `_ Methods ------- .. rst-class:: interim-class .. class:: ViewSwitcherTitle :no-index: .. method:: get_stack() -> ~gi.repository.Adw.ViewStack | None Gets the stack controlled by ``self``. .. deprecated:: 1.4 See `the migration guide `_ .. method:: get_subtitle() -> str Gets the subtitle of ``self``. .. deprecated:: 1.4 See `the migration guide `_ .. method:: get_title() -> str Gets the title of ``self``. .. deprecated:: 1.4 See `the migration guide `_ .. method:: get_title_visible() -> bool Gets whether the title of ``self`` is currently visible. If the title is visible, it means the view switcher is hidden an it may be wanted to show an alternative switcher, e.g. a :obj:`~gi.repository.Adw.ViewSwitcherBar`. .. deprecated:: 1.4 See `the migration guide `_ .. method:: get_view_switcher_enabled() -> bool Gets whether ``self``'s view switcher is enabled. .. deprecated:: 1.4 See `the migration guide `_ .. method:: set_stack(stack: ~gi.repository.Adw.ViewStack | None = None) -> None Sets the stack controlled by ``self``. .. deprecated:: 1.4 See `the migration guide `_ :param stack: a stack .. method:: set_subtitle(subtitle: str) -> None Sets the subtitle of ``self``. The subtitle should give the user additional details. .. deprecated:: 1.4 See `the migration guide `_ :param subtitle: a subtitle .. method:: set_title(title: str) -> None Sets the title of ``self``. The title typically identifies the current view or content item, and generally does not use the application name. .. deprecated:: 1.4 See `the migration guide `_ :param title: a title .. method:: set_view_switcher_enabled(enabled: bool) -> None Sets whether ``self``'s view switcher is enabled. If it is disabled, the title will be displayed instead. This allows to programmatically hide the view switcher even if it fits in the available space. This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable. .. deprecated:: 1.4 See `the migration guide `_ :param enabled: whether the view switcher is enabled Properties ---------- .. rst-class:: interim-class .. class:: ViewSwitcherTitle :no-index: .. attribute:: props.stack :type: ~gi.repository.Adw.ViewStack The stack the view switcher controls. .. deprecated:: 1.4 See `the migration guide `_ .. attribute:: props.subtitle :type: str The subtitle to display. The subtitle should give the user additional details. .. deprecated:: 1.4 See `the migration guide `_ .. attribute:: props.title :type: str The title to display. The title typically identifies the current view or content item, and generally does not use the application name. .. deprecated:: 1.4 See `the migration guide `_ .. attribute:: props.title_visible :type: bool Whether the title is currently visible. If the title is visible, it means the view switcher is hidden an it may be wanted to show an alternative switcher, e.g. a :obj:`~gi.repository.Adw.ViewSwitcherBar`. .. deprecated:: 1.4 See `the migration guide `_ .. attribute:: props.view_switcher_enabled :type: bool Whether the view switcher is enabled. If it is disabled, the title will be displayed instead. This allows to programmatically hide the view switcher even if it fits in the available space. This can be used e.g. to ensure the view switcher is hidden below a certain window width, or any other constraint you find suitable. .. deprecated:: 1.4 See `the migration guide `_