Trait libadwaita::prelude::ExpanderRowExt

source ·
pub trait ExpanderRowExt: IsA<ExpanderRow> + Sealed + 'static {
Show 26 methods // Provided methods fn add_action(&self, widget: &impl IsA<Widget>) { ... } fn add_prefix(&self, widget: &impl IsA<Widget>) { ... } fn add_row(&self, child: &impl IsA<Widget>) { ... } fn add_suffix(&self, widget: &impl IsA<Widget>) { ... } fn enables_expansion(&self) -> bool { ... } fn is_expanded(&self) -> bool { ... } fn icon_name(&self) -> Option<GString> { ... } fn shows_enable_switch(&self) -> bool { ... } fn subtitle(&self) -> GString { ... } fn subtitle_lines(&self) -> i32 { ... } fn title_lines(&self) -> i32 { ... } fn remove(&self, child: &impl IsA<Widget>) { ... } fn set_enable_expansion(&self, enable_expansion: bool) { ... } fn set_expanded(&self, expanded: bool) { ... } fn set_icon_name(&self, icon_name: Option<&str>) { ... } fn set_show_enable_switch(&self, show_enable_switch: bool) { ... } fn set_subtitle(&self, subtitle: &str) { ... } fn set_subtitle_lines(&self, subtitle_lines: i32) { ... } fn set_title_lines(&self, title_lines: i32) { ... } fn connect_enable_expansion_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_expanded_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_show_enable_switch_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_subtitle_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_title_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all ExpanderRow methods.

§Implementors

ExpanderRow

Provided Methods§

source

fn add_action(&self, widget: &impl IsA<Widget>)

👎Deprecated: Since 1.4

Adds an action widget to @self.

§Deprecated since 1.4

Use add_suffix() to add a suffix.

§widget

a widget

source

fn add_prefix(&self, widget: &impl IsA<Widget>)

Adds a prefix widget to @self.

§widget

a widget

source

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

Adds a widget to @self.

The widget will appear in the expanding list below @self.

§child

a widget

source

fn add_suffix(&self, widget: &impl IsA<Widget>)

Available on crate feature v1_4 only.

Adds an suffix widget to @self.

§widget

a widget

source

fn enables_expansion(&self) -> bool

Gets whether the expansion of @self is enabled.

§Returns

whether the expansion of @self is enabled.

source

fn is_expanded(&self) -> bool

Gets whether @self is expanded.

§Returns

whether @self is expanded

source

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

👎Deprecated: Since 1.3

Gets the icon name for @self.

§Deprecated since 1.3

Use add_prefix() to add an icon.

§Returns

the icon name for @self

source

fn shows_enable_switch(&self) -> bool

Gets whether the switch enabling the expansion of @self is visible.

§Returns

whether the switch enabling the expansion is visible

source

fn subtitle(&self) -> GString

Gets the subtitle for @self.

§Returns

the subtitle for @self

source

fn subtitle_lines(&self) -> i32

Available on crate feature v1_3 only.

Gets the number of lines at the end of which the subtitle label will be ellipsized.

§Returns

the number of lines at the end of which the subtitle label will be ellipsized

source

fn title_lines(&self) -> i32

Available on crate feature v1_3 only.

Gets the number of lines at the end of which the title label will be ellipsized.

§Returns

the number of lines at the end of which the title label will be ellipsized

source

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

Removes a child from @self.

§child

the child to be removed

source

fn set_enable_expansion(&self, enable_expansion: bool)

Sets whether the expansion of @self is enabled.

§enable_expansion

whether to enable the expansion

source

fn set_expanded(&self, expanded: bool)

Sets whether @self is expanded.

§expanded

whether to expand the row

source

fn set_icon_name(&self, icon_name: Option<&str>)

👎Deprecated: Since 1.3

Sets the icon name for @self.

§Deprecated since 1.3

Use add_prefix() to add an icon.

§icon_name

the icon name

source

fn set_show_enable_switch(&self, show_enable_switch: bool)

Sets whether the switch enabling the expansion of @self is visible.

§show_enable_switch

whether to show the switch enabling the expansion

source

fn set_subtitle(&self, subtitle: &str)

Sets the subtitle for @self.

The subtitle is interpreted as Pango markup unless use-markup is set to FALSE.

§subtitle

the subtitle

source

fn set_subtitle_lines(&self, subtitle_lines: i32)

Available on crate feature v1_3 only.

Sets the number of lines at the end of which the subtitle label will be ellipsized.

If the value is 0, the number of lines won’t be limited.

§subtitle_lines

the number of lines at the end of which the subtitle label will be ellipsized

source

fn set_title_lines(&self, title_lines: i32)

Available on crate feature v1_3 only.

Sets the number of lines at the end of which the title label will be ellipsized.

If the value is 0, the number of lines won’t be limited.

§title_lines

the number of lines at the end of which the title label will be ellipsized

source

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

source

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

source

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

👎Deprecated: Since 1.3
source

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

source

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

source

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

Available on crate feature v1_3 only.
source

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

Available on crate feature v1_3 only.

Object Safety§

This trait is not object safe.

Implementors§