NavigationPage
Object Hierarchy:
Adw.NavigationPage
Adw.NavigationPage
Adw.NavigationPage
Gtk.Widget
Gtk.Widget
Gtk.Widget->Adw.NavigationPage
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Adw.NavigationPage
Gtk.Accessible->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Adw.NavigationPage
Gtk.Buildable->Gtk.Widget
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Adw.NavigationPage
Gtk.ConstraintTarget->Gtk.Widget
Description:
[ CCode ( type_id = "adw_navigation_page_get_type ()" ) ] [ Version ( since = "1.4" ) ]public class NavigationPage : Widget , Accessible , Buildable , ConstraintTarget
A page within [class@NavigationView] or [class@NavigationSplitView].
Each page has a child widget, a title and optionally a tag.
The [signal@NavigationPage:AdwNavigationPage:showing
], [signal@NavigationPage:AdwNavigationPage:shown
], [
signal@NavigationPage:AdwNavigationPage:hiding
] and [signal@NavigationPage:AdwNavigationPage: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.
Content:
Properties:
Creation methods:
Methods:
public bool get_can_pop ()
Gets whether this can be popped from
navigation stack.
public unowned Widget ? get_child ()
Gets the child widget of this .
public unowned string ? get_tag ()
Gets the tag of this .
public unowned string get_title ()
Gets the title of this .
public void set_can_pop (bool can_pop)
Sets whether this can be popped from
navigation stack.
public void set_child (Widget ? child)
Sets the child widget of this .
public void set_tag (string ? tag)
Sets the tag for this .
public void set_title (string title)
Sets the title of this .
Signals:
public virtual signal void hidden ()
Emitted when the navigation view transition has been completed and the
page is fully hidden.
public virtual signal void hiding ()
Emitted when the page starts hiding at the beginning of the navigation
view transition.
public virtual signal void showing ()
Emitted when the page shows at the beginning of the navigation view
transition.
public virtual signal void shown ()
Emitted when the navigation view transition has been completed and the
page is fully shown.
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.Accessible
accessible_role
announce
get_accessible_parent
get_accessible_role
get_at_context
get_bounds
get_first_accessible_child
get_next_accessible_sibling
get_platform_state
reset_property
reset_relation
reset_state
set_accessible_parent
update_next_accessible_sibling
update_property
update_property_value
update_relation
update_relation_value
update_state
update_state_value
All known members inherited from interface Gtk.Buildable
add_child
custom_finished
custom_tag_end
custom_tag_start
get_buildable_id
get_id
get_internal_child
parser_finished
set_buildable_property
set_id