Trait libadwaita::prelude::ActionRowExt

source ·
pub trait ActionRowExt: IsA<ActionRow> + Sealed + 'static {
Show 23 methods // Provided methods fn activate(&self) { ... } fn add_prefix(&self, widget: &impl IsA<Widget>) { ... } fn add_suffix(&self, widget: &impl IsA<Widget>) { ... } fn activatable_widget(&self) -> Option<Widget> { ... } fn icon_name(&self) -> Option<GString> { ... } fn subtitle(&self) -> Option<GString> { ... } fn subtitle_lines(&self) -> i32 { ... } fn is_subtitle_selectable(&self) -> bool { ... } fn title_lines(&self) -> i32 { ... } fn remove(&self, widget: &impl IsA<Widget>) { ... } fn set_activatable_widget(&self, widget: Option<&impl IsA<Widget>>) { ... } fn set_icon_name(&self, icon_name: Option<&str>) { ... } fn set_subtitle(&self, subtitle: &str) { ... } fn set_subtitle_lines(&self, subtitle_lines: i32) { ... } fn set_subtitle_selectable(&self, subtitle_selectable: bool) { ... } fn set_title_lines(&self, title_lines: i32) { ... } fn connect_activated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_activatable_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_icon_name_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_subtitle_selectable_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 ActionRow methods.

§Implementors

ActionRow, ComboRow, SpinRow, SwitchRow

Provided Methods§

source

fn activate(&self)

Activates @self.

source

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

Adds a prefix widget to @self.

§widget

a widget

source

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

Adds a suffix widget to @self.

§widget

a widget

source

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

Gets the widget activated when @self is activated.

§Returns

the activatable widget for @self

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 subtitle(&self) -> Option<GString>

Gets the subtitle for @self.

§Returns

the subtitle for @self

source

fn subtitle_lines(&self) -> i32

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 is_subtitle_selectable(&self) -> bool

Available on crate feature v1_3 only.

Gets whether the user can copy the subtitle from the label

§Returns

whether the user can copy the subtitle from the label

source

fn title_lines(&self) -> i32

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, widget: &impl IsA<Widget>)

Removes a child from @self.

§widget

the child to be removed

source

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

Sets the widget to activate when @self is activated.

The row can be activated either by clicking on it, calling activate(), or via mnemonics in the title. See the use-underline property to enable mnemonics.

The target widget will be activated by emitting the mnemonic-activate signal on it.

§widget

the target widget

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_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)

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_subtitle_selectable(&self, subtitle_selectable: bool)

Available on crate feature v1_3 only.

Sets whether the user can copy the subtitle from the label

See also [selectable][struct@crate::Gtk::Label#selectable].

§subtitle_selectable

TRUE if the user can copy the subtitle from the label

source

fn set_title_lines(&self, title_lines: i32)

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_activated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

This signal is emitted after the row has been activated.

source

fn connect_activatable_widget_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_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

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

source

fn connect_subtitle_selectable_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

Object Safety§

This trait is not object safe.

Implementors§