Struct gtk::Label
[−]
pub struct Label(_, _);
Methods
impl Label
[src]
fn new<'a, T: Into<Option<&'a str>>>(str: T) -> Label
fn new_with_mnemonic<'a, T: Into<Option<&'a str>>>(str: T) -> Label
fn get_angle(&self) -> f64
fn get_current_uri(&self) -> Option<String>
fn get_justify(&self) -> Justification
fn get_label(&self) -> Option<String>
fn get_layout_offsets(&self) -> (i32, i32)
fn get_line_wrap(&self) -> bool
fn get_max_width_chars(&self) -> i32
fn get_mnemonic_keyval(&self) -> u32
fn get_mnemonic_widget(&self) -> Option<Widget>
fn get_selectable(&self) -> bool
fn get_selection_bounds(&self) -> Option<(i32, i32)>
fn get_single_line_mode(&self) -> bool
fn get_text(&self) -> Option<String>
fn get_track_visited_links(&self) -> bool
fn get_use_markup(&self) -> bool
fn get_use_underline(&self) -> bool
fn get_width_chars(&self) -> i32
fn select_region(&self, start_offset: i32, end_offset: i32)
fn set_angle(&self, angle: f64)
fn set_justify(&self, jtype: Justification)
fn set_label(&self, str: &str)
fn set_line_wrap(&self, wrap: bool)
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<T: IsA<Widget>>(&self, widget: Option<&T>)
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 get_property_cursor_position(&self) -> i32
fn get_property_selection_bound(&self) -> i32
fn get_property_wrap(&self) -> bool
fn set_property_wrap(&self, wrap: bool)
fn connect_activate_current_link<F: Fn(&Label) + 'static>(&self, f: F) -> u64
fn connect_activate_link<F: Fn(&Label, &str) -> Inhibit + 'static>(&self,
f: F)
-> u64
f: F)
-> u64
fn connect_copy_clipboard<F: Fn(&Label) + 'static>(&self, f: F) -> u64
fn connect_move_cursor<F: Fn(&Label, MovementStep, i32, bool) + 'static>(&self,
f: F)
-> u64
f: F)
-> u64
fn connect_populate_popup<F: Fn(&Label, &Menu) + 'static>(&self, f: F) -> u64
Trait Implementations
impl Clone for Label
fn clone(&self) -> Label
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Label
impl Hash for Label
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl StaticType for Label
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Label
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.