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
Provided Methods§
sourcefn add_action(&self, widget: &impl IsA<Widget>)
👎Deprecated: Since 1.4
fn add_action(&self, widget: &impl IsA<Widget>)
Adds an action widget to @self.
§Deprecated since 1.4
Use add_suffix()
to add a suffix.
§widget
a widget
sourcefn add_prefix(&self, widget: &impl IsA<Widget>)
fn add_prefix(&self, widget: &impl IsA<Widget>)
sourcefn add_suffix(&self, widget: &impl IsA<Widget>)
Available on crate feature v1_4
only.
fn add_suffix(&self, widget: &impl IsA<Widget>)
v1_4
only.sourcefn enables_expansion(&self) -> bool
fn enables_expansion(&self) -> bool
sourcefn is_expanded(&self) -> bool
fn is_expanded(&self) -> bool
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 shows_enable_switch(&self) -> bool
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
sourcefn subtitle_lines(&self) -> i32
Available on crate feature v1_3
only.
fn subtitle_lines(&self) -> i32
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
sourcefn title_lines(&self) -> i32
Available on crate feature v1_3
only.
fn title_lines(&self) -> i32
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
sourcefn set_enable_expansion(&self, enable_expansion: bool)
fn set_enable_expansion(&self, enable_expansion: bool)
sourcefn set_expanded(&self, expanded: bool)
fn set_expanded(&self, expanded: bool)
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_show_enable_switch(&self, show_enable_switch: bool)
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
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)
Available on crate feature v1_3
only.
fn set_subtitle_lines(&self, subtitle_lines: i32)
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
sourcefn set_title_lines(&self, title_lines: i32)
Available on crate feature v1_3
only.
fn set_title_lines(&self, title_lines: i32)
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
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
v1_3
only.fn connect_title_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_3
only.