ViewSwitcherTitle
Deprecated since version 1.4: See the migration guide
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
- Constructors:
ViewSwitcherTitle(**properties)
new() -> Gtk.Widget
Constructors
Methods
- class ViewSwitcherTitle
-
- 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
ViewSwitcherBar
.Deprecated since version 1.4:
- get_view_switcher_enabled() bool
Gets whether
self
’s view switcher is enabled.Deprecated since version 1.4:
- set_stack(stack: ViewStack | None = None) None
Sets the stack controlled by
self
.Deprecated since version 1.4:
- Parameters:
stack – a stack
- set_subtitle(subtitle: str) None
Sets the subtitle of
self
.The subtitle should give the user additional details.
Deprecated since version 1.4:
- Parameters:
subtitle – a subtitle
- 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 since version 1.4:
- Parameters:
title – a title
- 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 since version 1.4:
- Parameters:
enabled – whether the view switcher is enabled
Properties
- class ViewSwitcherTitle
-
- props.subtitle: str
The subtitle to display.
The subtitle should give the user additional details.
Deprecated since version 1.4:
- props.title: str
The title to display.
The title typically identifies the current view or content item, and generally does not use the application name.
Deprecated since version 1.4:
- props.title_visible: 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
ViewSwitcherBar
.Deprecated since version 1.4:
- props.view_switcher_enabled: 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 since version 1.4: