Struct ux::native::Label[][src]

pub struct Label { /* fields omitted */ }

Implementations

impl Label[src]

pub fn new() -> Label[src]

pub fn with_text(text: &str) -> Label[src]

Trait Implementations

impl AsRef<Actor> for Label[src]

impl AsRef<Label> for Label[src]

impl AsRef<Widget> for Label[src]

impl Clone for Label[src]

impl Debug for Label[src]

impl Default for Label[src]

impl Display for Label[src]

impl Is<Actor> for Label[src]

impl Is<Label> for Label[src]

impl Is<Widget> for Label[src]

impl Object for Label[src]

Auto Trait Implementations

impl !RefUnwindSafe for Label

impl !Send for Label

impl !Sync for Label

impl Unpin for Label

impl UnwindSafe for Label

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Construction<T> for T where
    T: Default + Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

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.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<O> WidgetExt for O where
    O: Is<Widget>, 
[src]

pub fn apply_style<P>(&self, style: &P) where
    P: Is<Style>, 
[src]

widget_apply_style: @widget: A #Widget @style: A #Style

Used to implement how a new style instance should be applied in the widget. For instance, setting style instance on stylable internal children.

pub fn get_available_area(&self, allocation: &ActorBox, area: &mut ActorBox)[src]

get_available_area: @widget: A #Widget @allocation: A #ActorBox @area: A #ActorBox

Copies @allocation into @area and accounts for the padding values. This gives the area that is available in which to allocate children with respect to padding.

pub fn get_background_color(&self) -> Option<Color<f64>>[src]

get_background_color: @actor: A #Widget

Get the color used as the background. This is set using the “background-color” CSS property. This function should normally only be used by subclasses.

Returns: (transfer none): a #Color

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

get_disabled: @widget: an #Widget

Get the value of the “disabled” property.

pub fn get_padding(&self) -> Padding[src]

get_padding: @widget: A #Widget @padding: (out): A pointer to an #Padding to fill

Gets the padding of the widget, set using the “padding” CSS property. This function should normally only be used by subclasses.

pub fn long_press_cancel(&self)[src]

long_press_cancel: @widget: An Widget

Cancel a long-press timeout if one is running and emit the signal to notify that the long-press has been cancelled.

pub fn long_press_query(&self, event: &mut Event)[src]

long_press_query: @widget: An Widget @event: the event used to determine whether to run a long-press

Emit the long-press query signal and start a long-press timeout if required.

pub fn set_disabled(&self, disabled: bool)[src]

widget_set_disabled: @widget: an #Widget @disabled: value to set

Set the disabled property. Disabled widgets have a “disabled” pseudo-class until disabled is set to #false.