Trait ux::TooltipExt[][src]

pub trait TooltipExt: 'static {
    pub fn get_text(&self) -> Option<String>;
pub fn get_tip_area(&self) -> Option<Geometry>;
pub fn hide(&self);
pub fn set_text(&self, text: &str);
pub fn set_tip_area(&self, area: &Geometry);
pub fn set_tip_area_from_actor<P>(&self, actor: &P)
    where
        P: Is<Actor>
;
pub fn show(&self);
pub fn connect_property_text_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_tip_area_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
; }

Required methods

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.

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

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

Loading content...

Implementors

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.

Loading content...