Trait ux::native::LabelExt[][src]

pub trait LabelExt: 'static {
Show methods pub fn get_alignment(&self) -> (Align, Align);
pub fn get_clutter_text(&self) -> Option<Actor>;
pub fn get_fade_out(&self) -> bool;
pub fn get_line_wrap(&self) -> bool;
pub fn get_show_tooltip(&self) -> bool;
pub fn get_text(&self) -> Option<String>;
pub fn get_use_markup(&self) -> bool;
pub fn get_x_align(&self) -> Align;
pub fn get_y_align(&self) -> Align;
pub fn set_alignment(&self, x_align: Align, y_align: Align);
pub fn set_fade_out(&self, fade: bool);
pub fn set_line_wrap(&self, line_wrap: bool);
pub fn set_show_tooltip(&self, show_tooltip: bool);
pub fn set_text(&self, text: &str);
pub fn set_use_markup(&self, use_markup: bool);
pub fn set_x_align(&self, align: Align);
pub fn set_y_align(&self, align: Align);
pub fn connect_property_clutter_text_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_fade_out_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_line_wrap_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_show_tooltip_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_text_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_use_markup_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_x_align_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_y_align_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
}

Required methods

pub fn get_alignment(&self) -> (Align, Align)[src]

get_alignment: @label: An #Label @x_align: (out) (allow-none): return location for x alignment value @y_align: (out) (allow-none): return location for y alignment value

Returns the text alignment on x and y axis.

pub fn get_clutter_text(&self) -> Option<Actor>[src]

get_clutter_text: @label: a #Label

Retrieve the internal #Text so that extra parameters can be set

Returns: (transfer none): the #Text used by #Label. The label is owned by the #Label and should not be unref’ed by the application.

pub fn get_fade_out(&self) -> bool[src]

get_fade_out: @label: A #Label

Determines whether the label has been set to fade out when there isn’t enough space allocated to display the entire label.

Returns: %true if the label is set to fade out, %false otherwise

pub fn get_line_wrap(&self) -> bool[src]

get_line_wrap: @label: An #Label

Get the value of the #Label:line-wrap property.

Returns: %true if the “line-wrap” property is set.

pub fn get_show_tooltip(&self) -> bool[src]

get_show_tooltip: @label: A #Label

Returns the current value of the #Label:show-tooltip property.

Returns: %true if the #Label:show-tooltip property is enabled

pub fn get_text(&self) -> Option<String>[src]

get_text: @label: a #Label

Get the text displayed on the label

Returns: the text for the label. This must not be freed by the application

pub fn get_use_markup(&self) -> bool[src]

get_use_markup: @label: a #Label

Determines whether the text of the label is being treated as Pango markup.

Returns: %true if the text of the label is treated as Pango markup, %false otherwise.

pub fn get_x_align(&self) -> Align[src]

pub fn get_y_align(&self) -> Align[src]

pub fn set_alignment(&self, x_align: Align, y_align: Align)[src]

set_alignment: @label: An #Label @x_align: x alignment value @y_align: y alignment value

Set the text alignment on x and y axis.

pub fn set_fade_out(&self, fade: bool)[src]

set_fade_out: @label: A #Label @fade: %true to fade out, %false otherwise

Set whether to fade out the end of the label, instead of ellipsizing. Enabling this mode will also set the #Text:single-line-mode and #Text:ellipsize properties.

pub fn set_line_wrap(&self, line_wrap: bool)[src]

set_line_wrap: @label: An #Label @line_wrap: new value of the line-wrap property.

Set the value of the #Label:line-wrap property.

pub fn set_show_tooltip(&self, show_tooltip: bool)[src]

set_show_tooltip: @label: A #Label @show_tooltip: %true if the tooltip should be shown

Set the value of the #Label:show-tooltip property

pub fn set_text(&self, text: &str)[src]

set_text: @label: a #Label @text: text to set the label to

Sets the text displayed on the label

pub fn set_use_markup(&self, use_markup: bool)[src]

set_use_markup: @label: a #Label @use_markup: %true to use Pango markup, %false otherwise

Sets whether the text of the label should be treated as Pango markup.

pub fn set_x_align(&self, align: Align)[src]

pub fn set_y_align(&self, align: Align)[src]

pub fn connect_property_clutter_text_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_fade_out_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_line_wrap_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_show_tooltip_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_text_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_use_markup_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_x_align_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_y_align_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

Loading content...

Implementors

impl<O> LabelExt for O where
    O: Is<Label>, 
[src]

pub fn get_alignment(&self) -> (Align, Align)[src]

get_alignment: @label: An #Label @x_align: (out) (allow-none): return location for x alignment value @y_align: (out) (allow-none): return location for y alignment value

Returns the text alignment on x and y axis.

pub fn get_clutter_text(&self) -> Option<Actor>[src]

get_clutter_text: @label: a #Label

Retrieve the internal #Text so that extra parameters can be set

Returns: (transfer none): the #Text used by #Label. The label is owned by the #Label and should not be unref’ed by the application.

pub fn get_fade_out(&self) -> bool[src]

get_fade_out: @label: A #Label

Determines whether the label has been set to fade out when there isn’t enough space allocated to display the entire label.

Returns: %true if the label is set to fade out, %false otherwise

pub fn get_line_wrap(&self) -> bool[src]

get_line_wrap: @label: An #Label

Get the value of the #Label:line-wrap property.

Returns: %true if the “line-wrap” property is set.

pub fn get_show_tooltip(&self) -> bool[src]

get_show_tooltip: @label: A #Label

Returns the current value of the #Label:show-tooltip property.

Returns: %true if the #Label:show-tooltip property is enabled

pub fn get_text(&self) -> Option<String>[src]

get_text: @label: a #Label

Get the text displayed on the label

Returns: the text for the label. This must not be freed by the application

pub fn get_use_markup(&self) -> bool[src]

get_use_markup: @label: a #Label

Determines whether the text of the label is being treated as Pango markup.

Returns: %true if the text of the label is treated as Pango markup, %false otherwise.

pub fn set_alignment(&self, x_align: Align, y_align: Align)[src]

set_alignment: @label: An #Label @x_align: x alignment value @y_align: y alignment value

Set the text alignment on x and y axis.

pub fn set_fade_out(&self, fade: bool)[src]

set_fade_out: @label: A #Label @fade: %true to fade out, %false otherwise

Set whether to fade out the end of the label, instead of ellipsizing. Enabling this mode will also set the #Text:single-line-mode and #Text:ellipsize properties.

pub fn set_line_wrap(&self, line_wrap: bool)[src]

set_line_wrap: @label: An #Label @line_wrap: new value of the line-wrap property.

Set the value of the #Label:line-wrap property.

pub fn set_show_tooltip(&self, show_tooltip: bool)[src]

set_show_tooltip: @label: A #Label @show_tooltip: %true if the tooltip should be shown

Set the value of the #Label:show-tooltip property

pub fn set_text(&self, text: &str)[src]

set_text: @label: a #Label @text: text to set the label to

Sets the text displayed on the label

pub fn set_use_markup(&self, use_markup: bool)[src]

set_use_markup: @label: a #Label @use_markup: %true to use Pango markup, %false otherwise

Sets whether the text of the label should be treated as Pango markup.

Loading content...