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
Provided Methods§
sourcefn add(&self, page: &impl IsA<PreferencesPage>)
fn add(&self, page: &impl IsA<PreferencesPage>)
sourcefn is_search_enabled(&self) -> bool
fn is_search_enabled(&self) -> bool
sourcefn visible_page(&self) -> Option<PreferencesPage>
fn visible_page(&self) -> Option<PreferencesPage>
sourcefn visible_page_name(&self) -> Option<GString>
fn visible_page_name(&self) -> Option<GString>
sourcefn pop_subpage(&self) -> bool
fn pop_subpage(&self) -> bool
sourcefn push_subpage(&self, page: &impl IsA<NavigationPage>)
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
sourcefn remove(&self, page: &impl IsA<PreferencesPage>)
fn remove(&self, page: &impl IsA<PreferencesPage>)
sourcefn set_search_enabled(&self, search_enabled: bool)
fn set_search_enabled(&self, search_enabled: bool)
sourcefn set_visible_page(&self, page: &impl IsA<PreferencesPage>)
fn set_visible_page(&self, page: &impl IsA<PreferencesPage>)
sourcefn set_visible_page_name(&self, name: &str)
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
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
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.