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
Provided Methods§
sourcefn add_prefix(&self, widget: &impl IsA<Widget>)
fn add_prefix(&self, widget: &impl IsA<Widget>)
sourcefn add_suffix(&self, widget: &impl IsA<Widget>)
fn add_suffix(&self, widget: &impl IsA<Widget>)
sourcefn activatable_widget(&self) -> Option<Widget>
fn activatable_widget(&self) -> Option<Widget>
sourcefn icon_name(&self) -> Option<GString>
👎Deprecated: Since 1.3
fn icon_name(&self) -> Option<GString>
Gets the icon name for @self.
§Deprecated since 1.3
Use add_prefix()
to add an icon.
§Returns
the icon name for @self
sourcefn subtitle_lines(&self) -> i32
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
sourcefn is_subtitle_selectable(&self) -> bool
Available on crate feature v1_3
only.
fn is_subtitle_selectable(&self) -> bool
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
sourcefn title_lines(&self) -> i32
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
sourcefn set_activatable_widget(&self, widget: Option<&impl IsA<Widget>>)
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
sourcefn set_icon_name(&self, icon_name: Option<&str>)
👎Deprecated: Since 1.3
fn set_icon_name(&self, icon_name: Option<&str>)
Sets the icon name for @self.
§Deprecated since 1.3
Use add_prefix()
to add an icon.
§icon_name
the icon name
sourcefn set_subtitle(&self, subtitle: &str)
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
sourcefn set_subtitle_lines(&self, subtitle_lines: i32)
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
sourcefn set_subtitle_selectable(&self, subtitle_selectable: bool)
Available on crate feature v1_3
only.
fn set_subtitle_selectable(&self, subtitle_selectable: bool)
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
sourcefn set_title_lines(&self, title_lines: i32)
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
sourcefn connect_activated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_activated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
This signal is emitted after the row has been activated.
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
v1_3
only.