pub trait PreferencesGroupExt: IsA<PreferencesGroup> + Sealed + 'static {
    // Provided methods
    fn add(&self, child: &impl IsA<Widget>) { ... }
    fn description(&self) -> Option<GString> { ... }
    fn header_suffix(&self) -> Option<Widget> { ... }
    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_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_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 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_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_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§