NavigationPage

open class NavigationPage(pointer: <Error class: unknown class><<Error class: unknown class>>)

A page within class@NavigationView or class@NavigationSplitView.

Each page has a child widget, a title and optionally a tag.

The signal@NavigationPage::showing, signal@NavigationPage::shown, signal@NavigationPage::hiding and signal@NavigationPage::hidden signals can be used to track the page's visibility within its AdwNavigationView.

Header Bar Integration

When placed inside AdwNavigationPage, class@HeaderBar will display the page title instead of window title.

When used together with class@NavigationView, it will also display a back button that can be used to go back to the previous page. Set property@HeaderBar:show-back-button to FALSE to disable that behavior if it's unwanted.

CSS Nodes

AdwNavigationPage has a single CSS node with name navigation-view-page.

Accessibility

AdwNavigationPage uses the GTK_ACCESSIBLE_ROLE_GROUP role.

Since

1.4

Constructors

Link copied to clipboard
constructor(child: <Error class: unknown class>, title: String)

Creates a new AdwNavigationPage.

constructor(child: <Error class: unknown class>, title: String, tag: String)

Creates a new AdwNavigationPage with provided tag.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adwNavigationPagePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var canPop: Boolean

Whether the page can be popped from navigation stack.

Link copied to clipboard
open var child: <Error class: unknown class>?

The child widget.

Link copied to clipboard
open val gtkAccessiblePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkBuildablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var tag: String?

The page tag.

Link copied to clipboard
open var title: String

The page title.

Functions

Link copied to clipboard
fun connectHidden(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the navigation view transition has been completed and the page is fully hidden.

Link copied to clipboard
fun connectHiding(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the page starts hiding at the beginning of the navigation view transition.

Link copied to clipboard
fun connectShowing(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the page shows at the beginning of the navigation view transition.

Link copied to clipboard
fun connectShown(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the navigation view transition has been completed and the page is fully shown.

Link copied to clipboard
open fun getCanPop(): Boolean

Gets whether @self can be popped from navigation stack.

Link copied to clipboard
open fun getChild(): <Error class: unknown class>?

Gets the child widget of @self.

Link copied to clipboard
open fun getTag(): String?

Gets the tag of @self.

Link copied to clipboard
open fun getTitle(): String

Gets the title of @self.

Link copied to clipboard
open fun setCanPop(canPop: Boolean)

Sets whether @self can be popped from navigation stack.

Link copied to clipboard
open fun setChild(child: <Error class: unknown class>? = null)

Sets the child widget of @self.

Link copied to clipboard
open fun setTag(tag: String? = null)

Sets the tag for @self.

Link copied to clipboard
open fun setTitle(title: String)

Sets the title of @self.