Trait libadwaita::prelude::PreferencesRowExt
source · pub trait PreferencesRowExt: IsA<PreferencesRow> + Sealed + 'static {
// Provided methods
fn title(&self) -> GString { ... }
fn is_title_selectable(&self) -> bool { ... }
fn uses_markup(&self) -> bool { ... }
fn uses_underline(&self) -> bool { ... }
fn set_title(&self, title: &str) { ... }
fn set_title_selectable(&self, title_selectable: bool) { ... }
fn set_use_markup(&self, use_markup: bool) { ... }
fn set_use_underline(&self, use_underline: bool) { ... }
fn connect_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_title_selectable_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_use_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_use_underline_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Trait containing all PreferencesRow
methods.
§Implementors
Provided Methods§
sourcefn is_title_selectable(&self) -> bool
Available on crate feature v1_1
only.
fn is_title_selectable(&self) -> bool
v1_1
only.Gets whether the user can copy the title from the label
§Returns
whether the user can copy the title from the label
sourcefn uses_markup(&self) -> bool
Available on crate feature v1_2
only.
fn uses_markup(&self) -> bool
v1_2
only.sourcefn uses_underline(&self) -> bool
fn uses_underline(&self) -> bool
Gets whether an embedded underline in the title indicates a mnemonic.
§Returns
whether an embedded underline in the title indicates a mnemonic
sourcefn set_title(&self, title: &str)
fn set_title(&self, title: &str)
Sets the title of the preference represented by @self.
The title is interpreted as Pango markup unless
use-markup
is set to FALSE
.
§title
the title
sourcefn set_title_selectable(&self, title_selectable: bool)
Available on crate feature v1_1
only.
fn set_title_selectable(&self, title_selectable: bool)
v1_1
only.Sets whether the user can copy the title from the label
See also [selectable
][struct@crate::Gtk::Label#selectable].
§title_selectable
TRUE
if the user can copy the title from the label
sourcefn set_use_markup(&self, use_markup: bool)
Available on crate feature v1_2
only.
fn set_use_markup(&self, use_markup: bool)
v1_2
only.Sets whether to use Pango markup for the title label.
Subclasses may also use it for other labels, such as subtitle.
See also parse_markup()
.
§use_markup
whether to use markup
sourcefn set_use_underline(&self, use_underline: bool)
fn set_use_underline(&self, use_underline: bool)
Sets whether an embedded underline in the title indicates a mnemonic.
§use_underline
TRUE
if underlines in the text indicate mnemonics
fn connect_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_title_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_1
only.fn connect_use_markup_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
v1_2
only.