libadwaita::prelude

Trait PreferencesGroupExt

Source
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

Trait containing all PreferencesGroup methods.

§Implementors

PreferencesGroup

Provided Methods§

Source

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

Adds a child to @self.

§child

the widget to add

Source

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

Gets the description of @self.

§Returns

the description of @self

Source

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

Available on crate feature v1_1 only.

Gets the suffix for @self’s header.

§Returns

the suffix for @self’s header.

Source

fn is_separate_rows(&self) -> bool

Available on crate feature v1_6 only.

Gets whether @self’s rows are separated.

§Returns

whether rows are separated

Source

fn title(&self) -> GString

Gets the title of @self.

§Returns

the title of @self

Source

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

Removes a child from @self.

§child

the child to remove

Source

fn set_description(&self, description: Option<&str>)

Sets the description for @self.

§description

the description

Source

fn set_header_suffix(&self, suffix: Option<&impl IsA<Widget>>)

Available on crate feature 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

Source

fn set_separate_rows(&self, separate_rows: bool)

Available on crate feature 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

Source

fn set_title(&self, title: &str)

Sets the title for @self.

§title

the title

Source

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

Source

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

Available on crate feature v1_1 only.
Source

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

Available on crate feature v1_6 only.
Source

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.

Implementors§