ViewSwitcher

class ViewSwitcher(**properties: Any)

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

Constructors:

ViewSwitcher(**properties)
new() -> Gtk.Widget

Constructors

class ViewSwitcher
classmethod new() Widget

Creates a new AdwViewSwitcher.

Methods

class ViewSwitcher
get_policy() ViewSwitcherPolicy

Gets the policy of self.

get_stack() ViewStack | None

Gets the stack controlled by self.

set_policy(policy: ViewSwitcherPolicy) None

Sets the policy of self.

Parameters:

policy – the new policy

set_stack(stack: ViewStack | None = None) None

Sets the stack controlled by self.

Parameters:

stack – a stack

Properties

class ViewSwitcher
props.policy: ViewSwitcherPolicy

The policy to determine which mode to use.

props.stack: ViewStack

The stack the view switcher controls.