pub struct Tooltip {}
Expand description
Controls tooltips on an application-wide basis; use .set_tooltip() to add a tooltip to a particular widget
Implementations§
source§impl Tooltip
impl Tooltip
sourcepub fn set_hidedelay(f: f32)
pub fn set_hidedelay(f: f32)
Sets the tooltips hide delay
sourcepub fn hoverdelay() -> f32
pub fn hoverdelay() -> f32
Gets the tooltips hover delay
sourcepub fn set_hoverdelay(f: f32)
pub fn set_hoverdelay(f: f32)
Sets the tooltips hover delay
sourcepub fn enable(b: bool)
pub fn enable(b: bool)
Sets tooltips to be displayed if b is true; otherwise not to be displayed
sourcepub fn enter_area<W: WidgetExt>(
widget: &W,
x: i32,
y: i32,
w: i32,
h: i32,
tip: &'static CStr
)
pub fn enter_area<W: WidgetExt>( widget: &W, x: i32, y: i32, w: i32, h: i32, tip: &'static CStr )
Used to provide tooltips for internal pieces of your widget. Check FLTK’s documentation. The text of the tooltip must be a static CStr since the data is not copied by FLTK. This also avoid memory leaks in user code.
sourcepub fn current_widget() -> impl WidgetExt
pub fn current_widget() -> impl WidgetExt
Returns the current widget associated with the tooltip
sourcepub fn set_font_size(s: i32)
pub fn set_font_size(s: i32)
Sets the tooltips font size
sourcepub fn text_color() -> Color
pub fn text_color() -> Color
Gets the tooltips text color
sourcepub fn set_text_color(c: Color)
pub fn set_text_color(c: Color)
Sets the tooltips text color
sourcepub fn margin_width() -> i32
pub fn margin_width() -> i32
Gets the tooltips margin width
sourcepub fn set_margin_width(v: i32)
pub fn set_margin_width(v: i32)
Sets the tooltips margin width
sourcepub fn margin_height() -> i32
pub fn margin_height() -> i32
Gets the tooltips margin height
sourcepub fn set_margin_height(v: i32)
pub fn set_margin_height(v: i32)
Sets the tooltips margin height
sourcepub fn wrap_width() -> i32
pub fn wrap_width() -> i32
Gets the tooltips wrap width
sourcepub fn set_wrap_width(v: i32)
pub fn set_wrap_width(v: i32)
Sets the tooltips wrap width
sourcepub fn current_window() -> impl WindowExt
pub fn current_window() -> impl WindowExt
Returns the window used for tooltips