libadwaita::prelude

Trait PreferencesDialogExt

source
pub trait PreferencesDialogExt: IsA<PreferencesDialog> + 'static {
Show 14 methods // Provided methods fn add(&self, page: &impl IsA<PreferencesPage>) { ... } fn add_toast(&self, toast: Toast) { ... } fn is_search_enabled(&self) -> bool { ... } fn visible_page(&self) -> Option<PreferencesPage> { ... } fn visible_page_name(&self) -> Option<GString> { ... } fn pop_subpage(&self) -> bool { ... } fn push_subpage(&self, page: &impl IsA<NavigationPage>) { ... } fn remove(&self, page: &impl IsA<PreferencesPage>) { ... } fn set_search_enabled(&self, search_enabled: bool) { ... } fn set_visible_page(&self, page: &impl IsA<PreferencesPage>) { ... } fn set_visible_page_name(&self, name: &str) { ... } fn connect_search_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_visible_page_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_visible_page_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Available on crate feature v1_5 only.
Expand description

Trait containing all PreferencesDialog methods.

§Implementors

PreferencesDialog

Provided Methods§

source

fn add(&self, page: &impl IsA<PreferencesPage>)

Adds a preferences page to @self.

§page

the page to add

source

fn add_toast(&self, toast: Toast)

Displays @toast.

See ToastOverlay::add_toast().

§toast

a toast

source

fn is_search_enabled(&self) -> bool

Gets whether search is enabled for @self.

§Returns

whether search is enabled for @self.

source

fn visible_page(&self) -> Option<PreferencesPage>

Gets the currently visible page of @self.

§Returns

the visible page

source

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

Gets the name of currently visible page of @self.

§Returns

the name of the visible page

source

fn pop_subpage(&self) -> bool

Pop the visible page from the subpage stack of @self.

§Returns

TRUE if a page has been popped

source

fn push_subpage(&self, page: &impl IsA<NavigationPage>)

Pushes @page onto the subpage stack of @self.

The page will be automatically removed when popped.

§page

the subpage

source

fn remove(&self, page: &impl IsA<PreferencesPage>)

Removes a page from @self.

§page

the page to remove

source

fn set_search_enabled(&self, search_enabled: bool)

Sets whether search is enabled for @self.

§search_enabled

whether search is enabled

source

fn set_visible_page(&self, page: &impl IsA<PreferencesPage>)

Makes @page the visible page of @self.

§page

a page of @self

source

fn set_visible_page_name(&self, name: &str)

Makes the page with the given name visible.

See visible-page.

§name

the name of the page to make visible

source

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

source

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

source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§