Trait gtk::prelude::LabelExt

source ·
pub trait LabelExt: IsA<Label> + Sealed + 'static {
Show 82 methods // Provided methods fn angle(&self) -> f64 { ... } fn attributes(&self) -> Option<AttrList> { ... } fn current_uri(&self) -> Option<GString> { ... } fn ellipsize(&self) -> EllipsizeMode { ... } fn justify(&self) -> Justification { ... } fn label(&self) -> GString { ... } fn layout(&self) -> Option<Layout> { ... } fn layout_offsets(&self) -> (i32, i32) { ... } fn is_line_wrap(&self) -> bool { ... } fn line_wrap_mode(&self) -> WrapMode { ... } fn lines(&self) -> i32 { ... } fn max_width_chars(&self) -> i32 { ... } fn mnemonic_keyval(&self) -> u32 { ... } fn mnemonic_widget(&self) -> Option<Widget> { ... } fn is_selectable(&self) -> bool { ... } fn selection_bounds(&self) -> Option<(i32, i32)> { ... } fn is_single_line_mode(&self) -> bool { ... } fn text(&self) -> GString { ... } fn tracks_visited_links(&self) -> bool { ... } fn uses_markup(&self) -> bool { ... } fn uses_underline(&self) -> bool { ... } fn width_chars(&self) -> i32 { ... } fn xalign(&self) -> f32 { ... } fn yalign(&self) -> f32 { ... } fn select_region(&self, start_offset: i32, end_offset: i32) { ... } fn set_angle(&self, angle: f64) { ... } fn set_attributes(&self, attrs: Option<&AttrList>) { ... } fn set_ellipsize(&self, mode: EllipsizeMode) { ... } fn set_justify(&self, jtype: Justification) { ... } fn set_label(&self, str: &str) { ... } fn set_line_wrap(&self, wrap: bool) { ... } fn set_line_wrap_mode(&self, wrap_mode: WrapMode) { ... } fn set_lines(&self, lines: i32) { ... } fn set_markup(&self, str: &str) { ... } fn set_markup_with_mnemonic(&self, str: &str) { ... } fn set_max_width_chars(&self, n_chars: i32) { ... } fn set_mnemonic_widget(&self, widget: Option<&impl IsA<Widget>>) { ... } fn set_pattern(&self, pattern: &str) { ... } fn set_selectable(&self, setting: bool) { ... } fn set_single_line_mode(&self, single_line_mode: bool) { ... } fn set_text(&self, str: &str) { ... } fn set_text_with_mnemonic(&self, str: &str) { ... } fn set_track_visited_links(&self, track_links: bool) { ... } fn set_use_markup(&self, setting: bool) { ... } fn set_use_underline(&self, setting: bool) { ... } fn set_width_chars(&self, n_chars: i32) { ... } fn set_xalign(&self, xalign: f32) { ... } fn set_yalign(&self, yalign: f32) { ... } fn cursor_position(&self) -> i32 { ... } fn selection_bound(&self) -> i32 { ... } fn wraps(&self) -> bool { ... } fn set_wrap(&self, wrap: bool) { ... } fn wrap_mode(&self) -> WrapMode { ... } fn set_wrap_mode(&self, wrap_mode: WrapMode) { ... } fn connect_activate_current_link<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_activate_current_link(&self) { ... } fn connect_activate_link<F: Fn(&Self, &str) -> Propagation + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_copy_clipboard<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_copy_clipboard(&self) { ... } fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_move_cursor( &self, step: MovementStep, count: i32, extend_selection: bool ) { ... } fn connect_populate_popup<F: Fn(&Self, &Menu) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_angle_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_attributes_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_cursor_position_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_ellipsize_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_justify_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_label_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_max_width_chars_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_mnemonic_keyval_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_mnemonic_widget_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_pattern_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_selectable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_selection_bound_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_single_line_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_track_visited_links_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 { ... } fn connect_width_chars_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_wrap_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn angle(&self) -> f64

source

fn attributes(&self) -> Option<AttrList>

source

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

source

fn ellipsize(&self) -> EllipsizeMode

source

fn justify(&self) -> Justification

source

fn label(&self) -> GString

source

fn layout(&self) -> Option<Layout>

source

fn layout_offsets(&self) -> (i32, i32)

source

fn is_line_wrap(&self) -> bool

source

fn line_wrap_mode(&self) -> WrapMode

source

fn lines(&self) -> i32

source

fn max_width_chars(&self) -> i32

source

fn mnemonic_keyval(&self) -> u32

source

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

source

fn is_selectable(&self) -> bool

source

fn selection_bounds(&self) -> Option<(i32, i32)>

source

fn is_single_line_mode(&self) -> bool

source

fn text(&self) -> GString

source

fn uses_markup(&self) -> bool

source

fn uses_underline(&self) -> bool

source

fn width_chars(&self) -> i32

source

fn xalign(&self) -> f32

source

fn yalign(&self) -> f32

source

fn select_region(&self, start_offset: i32, end_offset: i32)

source

fn set_angle(&self, angle: f64)

source

fn set_attributes(&self, attrs: Option<&AttrList>)

source

fn set_ellipsize(&self, mode: EllipsizeMode)

source

fn set_justify(&self, jtype: Justification)

source

fn set_label(&self, str: &str)

source

fn set_line_wrap(&self, wrap: bool)

source

fn set_line_wrap_mode(&self, wrap_mode: WrapMode)

source

fn set_lines(&self, lines: i32)

source

fn set_markup(&self, str: &str)

source

fn set_markup_with_mnemonic(&self, str: &str)

source

fn set_max_width_chars(&self, n_chars: i32)

source

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

source

fn set_pattern(&self, pattern: &str)

source

fn set_selectable(&self, setting: bool)

source

fn set_single_line_mode(&self, single_line_mode: bool)

source

fn set_text(&self, str: &str)

source

fn set_text_with_mnemonic(&self, str: &str)

source

fn set_use_markup(&self, setting: bool)

source

fn set_use_underline(&self, setting: bool)

source

fn set_width_chars(&self, n_chars: i32)

source

fn set_xalign(&self, xalign: f32)

source

fn set_yalign(&self, yalign: f32)

source

fn cursor_position(&self) -> i32

source

fn selection_bound(&self) -> i32

source

fn wraps(&self) -> bool

source

fn set_wrap(&self, wrap: bool)

source

fn wrap_mode(&self) -> WrapMode

source

fn set_wrap_mode(&self, wrap_mode: WrapMode)

source

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

source

fn emit_copy_clipboard(&self)

source

fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn emit_move_cursor( &self, step: MovementStep, count: i32, extend_selection: bool )

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§

source§

impl<O: IsA<Label>> LabelExt for O