Trait components::TooltipExt [−][src]
pub trait TooltipExt: 'static { fn get_text(&self) -> Option<String>; fn get_tip_area(&self) -> Option<Geometry>; fn hide(&self); fn set_text(&self, text: &str); fn set_tip_area(&self, area: &Geometry); fn set_tip_area_from_actor<P: Is<Actor>>(&self, actor: &P); fn show(&self); fn connect_property_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_tip_area_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required methods
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
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.
fn hide(&self)
[src]
hide: @tooltip: a #Tooltip
Hide the tooltip
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
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.
fn set_tip_area_from_actor<P: Is<Actor>>(&self, actor: &P)
[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
fn show(&self)
[src]
show: @tooltip: a #Tooltip
Show the tooltip relative to the associated widget.
fn connect_property_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_tip_area_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: Is<Tooltip>> TooltipExt for O
[src]
impl<O: Is<Tooltip>> TooltipExt for O
[src]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
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.
fn hide(&self)
[src]
hide: @tooltip: a #Tooltip
Hide the tooltip
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
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.
fn set_tip_area_from_actor<P: Is<Actor>>(&self, actor: &P)
[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
fn show(&self)
[src]
show: @tooltip: a #Tooltip
Show the tooltip relative to the associated widget.
fn connect_property_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_tip_area_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId