pub trait NavigationPageExt: IsA<NavigationPage> + Sealed + 'static {
Show 16 methods // Provided methods fn can_pop(&self) -> bool { ... } fn child(&self) -> Option<Widget> { ... } fn tag(&self) -> Option<GString> { ... } fn title(&self) -> GString { ... } fn set_can_pop(&self, can_pop: bool) { ... } fn set_child(&self, child: Option<&impl IsA<Widget>>) { ... } fn set_tag(&self, tag: Option<&str>) { ... } fn set_title(&self, title: &str) { ... } fn connect_hidden<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_hiding<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_showing<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_shown<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_can_pop_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_child_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_tag_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}
Available on crate feature v1_4 only.
Expand description

Trait containing all NavigationPage methods.

§Implementors

NavigationPage

Provided Methods§

source

fn can_pop(&self) -> bool

Gets whether @self can be popped from navigation stack.

§Returns

whether the page can be popped from navigation stack

source

fn child(&self) -> Option<Widget>

Gets the child widget of @self.

§Returns

the child widget of @self

source

fn tag(&self) -> Option<GString>

Gets the tag of @self.

§Returns

the page tag

source

fn title(&self) -> GString

Gets the title of @self.

§Returns

the title of @self

source

fn set_can_pop(&self, can_pop: bool)

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 show-back-button for removing only the back button, but not shortcuts.

§can_pop

whether the page can be popped from navigation stack

source

fn set_child(&self, child: Option<&impl IsA<Widget>>)

Sets the child widget of @self.

§child

the child widget

source

fn set_tag(&self, tag: Option<&str>)

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.

§tag

the page tag

source

fn set_title(&self, title: &str)

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.

§title

the title

source

fn connect_hidden<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

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

It will always be preceded by hiding or showing.

source

fn connect_hiding<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

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

It will always be followed by hidden or shown.

source

fn connect_showing<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

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

It will always be followed by shown or hidden.

source

fn connect_shown<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

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

It will always be preceded by showing or hiding.

source

fn connect_can_pop_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_tag_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§