Struct ux::Tooltip[][src]

pub struct Tooltip { /* fields omitted */ }

Implementations

impl Tooltip[src]

pub fn is_in_browse_mode() -> bool[src]

is_in_browse_mode:

Browse mode is entered whenever a tooltip is displayed and it is left after a short delay when a tooltip is hidden. This is used to make tooltips display quicker when a previous tooltip is already displayed.

Returns: %true if the app is in tooltip browse mode or %false otherwise.

Trait Implementations

impl AsRef<Actor> for Tooltip[src]

impl AsRef<FloatingWidget> for Tooltip[src]

impl AsRef<Tooltip> for Tooltip[src]

impl AsRef<Widget> for Tooltip[src]

impl Clone for Tooltip[src]

impl Debug for Tooltip[src]

impl Display for Tooltip[src]

impl Is<Actor> for Tooltip[src]

impl Is<FloatingWidget> for Tooltip[src]

impl Is<Tooltip> for Tooltip[src]

impl Is<Widget> for Tooltip[src]

impl Object for Tooltip[src]

Auto Trait Implementations

impl !RefUnwindSafe for Tooltip

impl !Send for Tooltip

impl !Sync for Tooltip

impl Unpin for Tooltip

impl UnwindSafe for Tooltip

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> 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<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<O> TooltipExt for O where
    O: Is<Tooltip>, 
[src]

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

get_text: @tooltip: a #Tooltip

Get the text displayed on the tooltip

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

pub fn get_tip_area(&self) -> Option<Geometry>[src]

get_tip_area: @tooltip: A #Tooltip

Retrieve the area on the stage that the tooltip currently applies to

Returns: the #Geometry, owned by the tooltip which must not be freed by the application.

pub fn hide(&self)[src]

hide: @tooltip: a #Tooltip

Hide the tooltip

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

set_text: @tooltip: a #Tooltip @text: text to set the label to

Sets the text displayed on the tooltip

pub fn set_tip_area(&self, area: &Geometry)[src]

set_tip_area: @tooltip: A #Tooltip @area: A #Geometry

Set the area on the stage that the tooltip applies to.

pub fn set_tip_area_from_actor<P>(&self, actor: &P) where
    P: Is<Actor>, 
[src]

set_tip_area_from_actor: @tooltip: A #Tooltip @actor: A #Actor

Utility function to set the geometry of the tooltip area from an existing actor. See also set_tip_area

pub fn show(&self)[src]

show: @tooltip: a #Tooltip

Show the tooltip relative to the associated widget.

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.