pub trait PreferencesGroupExt:
IsA<PreferencesGroup>
+ Sealed
+ 'static {
Show 14 methods
// Provided methods
fn add(&self, child: &impl IsA<Widget>) { ... }
fn description(&self) -> Option<GString> { ... }
fn header_suffix(&self) -> Option<Widget> { ... }
fn is_separate_rows(&self) -> bool { ... }
fn title(&self) -> GString { ... }
fn remove(&self, child: &impl IsA<Widget>) { ... }
fn set_description(&self, description: Option<&str>) { ... }
fn set_header_suffix(&self, suffix: Option<&impl IsA<Widget>>) { ... }
fn set_separate_rows(&self, separate_rows: bool) { ... }
fn set_title(&self, title: &str) { ... }
fn connect_description_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_header_suffix_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_separate_rows_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
Sourcefn description(&self) -> Option<GString>
fn description(&self) -> Option<GString>
Sourcefn header_suffix(&self) -> Option<Widget>
Available on crate feature v1_1
only.
fn header_suffix(&self) -> Option<Widget>
v1_1
only.Sourcefn is_separate_rows(&self) -> bool
Available on crate feature v1_6
only.
fn is_separate_rows(&self) -> bool
v1_6
only.Sourcefn set_description(&self, description: Option<&str>)
fn set_description(&self, description: Option<&str>)
Sourcefn set_header_suffix(&self, suffix: Option<&impl IsA<Widget>>)
Available on crate feature v1_1
only.
fn set_header_suffix(&self, suffix: Option<&impl IsA<Widget>>)
v1_1
only.Sets the suffix for @self’s header.
Displayed above the list, next to the title and description.
Suffixes are commonly used to show a button or a spinner for the whole group.
§suffix
the suffix to set
Sourcefn set_separate_rows(&self, separate_rows: bool)
Available on crate feature v1_6
only.
fn set_separate_rows(&self, separate_rows: bool)
v1_6
only.Sets whether @self’s rows are separated.
Equivalent to using the
.boxed-list-separate
style class
on a Gtk::ListBox
instead of .boxed-list
.
§separate_rows
whether to separate rows
fn connect_description_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_header_suffix_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_1
only.fn connect_separate_rows_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v1_6
only.fn connect_title_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.