Next: <AdwNavigationSplitView>, Previous: <AdwMultiLayoutView>, Up: Classes [Index]
It derives from <GtkWidget>.
A page within NavigationView or NavigationSplitView.
Each page has a child widget, a title and optionally a tag.
The "showing", "shown", "hiding" and
"hidden" signals can be used to track the page’s visibility
within its <AdwNavigationView>.
When placed inside <AdwNavigationPage>,
HeaderBar will display the page title instead of window title.
When used together with NavigationView, it will also display a
back button that can be used to go back to the previous page. Set
HeaderBar:show-back-button to FALSE to disable that
behavior if it’s unwanted.
<AdwNavigationPage> has a single CSS node
with name navigation-view-page.
<AdwNavigationPage> uses the
Gtk.AccessibleRole.group role.
parent-instanceWhether the page can be popped from navigation stack.
Set it to FALSE to disable shortcuts and gestures, as well as
remove the back button from HeaderBar.
Manually calling NavigationView.pop or using the
navigation.pop action will still work.
See HeaderBar:show-back-button for removing only the back button,
but not shortcuts.
Its value is a boolean.
Set it with (set! (navigation-page:can-pop self) value).
The child widget.
Its value is a <GtkWidget>, or #f.
Set it with (set! (navigation-page:child self) value).
The page tag.
The tag can be used to retrieve the page with
NavigationView.find_page, as well as with
NavigationView.push_by_tag, NavigationView.pop_to_tag or
NavigationView.replace_with_tags.
Tags must be unique within each NavigationView.
The tag also must be set to use the navigation.push action.
Its value is a string, or #f.
Set it with (set! (navigation-page:tag self) value).
The page title.
It’s displayed in HeaderBar instead of the window title, and used
as the tooltip on the next page’s back button, as well as by screen
reader.
Its value is a string, or #f.
Set it with (set! (navigation-page:title self) value).
Gets whether self can be popped from navigation stack.
Passed: a <AdwNavigationPage>.
a navigation page
Returned: a boolean.
whether the page can be popped from navigation stack
Gets the child widget of self.
Passed: a <AdwNavigationPage>.
a navigation page
Returned: a <GtkWidget>, or #f.
the child widget of self
Gets the tag of self.
Passed: a <AdwNavigationPage>.
a navigation page
Returned: a string, or #f.
the page tag
Gets the title of self.
Passed: a <AdwNavigationPage>.
a navigation page
Returned: a string.
the title of self
Creates a new <AdwNavigationPage>.
Passed: a <GtkWidget>.
the child widget
Passed: a string.
the page title
Returned: a <AdwNavigationPage>.
the new created <AdwNavigationPage>
Creates a new <AdwNavigationPage> with
provided tag.
Passed: a <GtkWidget>.
the child widget
Passed: a string.
the page title
Passed: a string.
the page tag
Returned: a <AdwNavigationPage>.
the new created <AdwNavigationPage>
Sets whether self can be popped from navigation stack.
Set it to FALSE to disable shortcuts and gestures, as well as
remove the back button from HeaderBar.
Manually calling NavigationView.pop or using the
navigation.pop action will still work.
See HeaderBar:show-back-button for removing only the back button,
but not shortcuts.
Passed: a <AdwNavigationPage>.
a navigation page
Passed: a boolean.
whether the page can be popped from navigation stack
Sets the child widget of self.
Passed: a <AdwNavigationPage>.
a navigation page
Passed, or left out: a <GtkWidget>, or
#f.
the child widget
Sets the tag for self.
The tag can be used to retrieve the page with
NavigationView.find_page, as well as with
NavigationView.push_by_tag, NavigationView.pop_to_tag or
NavigationView.replace_with_tags.
Tags must be unique within each NavigationView.
The tag also must be set to use the navigation.push action.
Passed: a <AdwNavigationPage>.
a navigation page
Passed, or left out: a string, or #f.
the page tag
Sets the title of self.
It’s displayed in HeaderBar instead of the window title, and used
as the tooltip on the next page’s back button, as well as by screen
reader.
Passed: a <AdwNavigationPage>.
a navigation page
Passed: a string.
the title
Connect a handler with (connect object navigation-page:hidden
handler). It is called as (handler self).
Emitted when the navigation view transition has been completed and the page is fully hidden.
It will always be preceded by "hiding" or "showing".
Passed: a <AdwNavigationPage>.
Connect a handler with (connect object navigation-page:hiding
handler). It is called as (handler self).
Emitted when the page starts hiding at the beginning of the navigation view transition.
It will always be followed by "hidden" or "shown".
Passed: a <AdwNavigationPage>.
Connect a handler with (connect object navigation-page:showing
handler). It is called as (handler self).
Emitted when the page shows at the beginning of the navigation view transition.
It will always be followed by "shown" or "hidden".
Passed: a <AdwNavigationPage>.
Connect a handler with (connect object navigation-page:shown
handler). It is called as (handler self).
Emitted when the navigation view transition has been completed and the page is fully shown.
It will always be preceded by "showing" or "hiding".
Passed: a <AdwNavigationPage>.
Called when the navigation view transition has been completed and the page is fully hidden.
To override it in a new class, give register-type #:vfuncs
`((hidden . ,procedure)). The procedure is called as (procedure
self).
Passed: the class whose implementation to call:
<AdwNavigationPage>, or a class that
derives from it, or its GType number.
Passed: a <AdwNavigationPage>.
a navigation page
Called when the page starts hiding at the beginning of the navigation view transition.
To override it in a new class, give register-type #:vfuncs
`((hiding . ,procedure)). The procedure is called as (procedure
self).
Passed: the class whose implementation to call:
<AdwNavigationPage>, or a class that
derives from it, or its GType number.
Passed: a <AdwNavigationPage>.
a navigation page
Called when the page shows at the beginning of the navigation view transition.
To override it in a new class, give register-type #:vfuncs
`((showing . ,procedure)). The procedure is called as
(procedure self).
Passed: the class whose implementation to call:
<AdwNavigationPage>, or a class that
derives from it, or its GType number.
Passed: a <AdwNavigationPage>.
a navigation page
Called when the navigation view transition has been completed and the page is fully shown.
To override it in a new class, give register-type #:vfuncs
`((shown . ,procedure)). The procedure is called as (procedure
self).
Passed: the class whose implementation to call:
<AdwNavigationPage>, or a class that
derives from it, or its GType number.
Passed: a <AdwNavigationPage>.
a navigation page
Next: <AdwNavigationSplitView>, Previous: <AdwMultiLayoutView>, Up: Classes [Index]