FLTK 1.4.0
|
The Fl_Tooltip class provides tooltip support for all FLTK widgets. More...
#include <Fl_Tooltip.H>
Static Public Member Functions | |
static Fl_Color | color () |
Gets the background color for tooltips. More... | |
static void | color (Fl_Color c) |
Sets the background color for tooltips. More... | |
static Fl_Widget * | current () |
Gets the current widget target. | |
static void | current (Fl_Widget *) |
Sets the current widget target. More... | |
static Fl_Window * | current_window (void) |
Returns the window that is used for tooltips. | |
static float | delay () |
Gets the tooltip delay. More... | |
static void | delay (float f) |
Sets the tooltip delay. More... | |
static void | disable () |
Same as enable(0), disables tooltips on all widgets. More... | |
static void | enable (int b=1) |
Enables tooltips on all widgets (or disables if b is false). More... | |
static int | enabled () |
Returns non-zero if tooltips are enabled. More... | |
static void | enter_area (Fl_Widget *w, int X, int Y, int W, int H, const char *tip) |
You may be able to use this to provide tooltips for internal pieces of your widget. More... | |
static Fl_Font | font () |
Gets the typeface for the tooltip text. More... | |
static void | font (Fl_Font i) |
Sets the typeface for the tooltip text. More... | |
static float | hidedelay () |
Gets the time until an open tooltip hides again. More... | |
static void | hidedelay (float f) |
Sets the time until an open tooltip hides again. More... | |
static float | hoverdelay () |
Gets the tooltip hover delay, the delay between tooltips. More... | |
static void | hoverdelay (float f) |
Sets the tooltip hover delay, the delay between tooltips. More... | |
static int | margin_height () |
Gets the amount of extra space above and below the tooltip's text. More... | |
static void | margin_height (int v) |
Sets the amount of extra space above and below the tooltip's text. More... | |
static int | margin_width () |
Gets the amount of extra space left/right of the tooltip's text. More... | |
static void | margin_width (int v) |
Sets the amount of extra space left/right of the tooltip's text. More... | |
static Fl_Fontsize | size () |
Gets the size of the tooltip text. More... | |
static void | size (Fl_Fontsize s) |
Sets the size of the tooltip text. More... | |
static Fl_Color | textcolor () |
Gets the color of the text in the tooltip. More... | |
static void | textcolor (Fl_Color c) |
Sets the color of the text in the tooltip. More... | |
static int | wrap_width () |
Gets the maximum width for tooltip's text before it word wraps. More... | |
static void | wrap_width (int v) |
Sets the maximum width for tooltip's text before it word wraps. More... | |
Static Public Attributes | |
static void(* | enter )(Fl_Widget *w) = nothing |
static void(* | exit )(Fl_Widget *w) = nothing |
Friends | |
class | Fl_TooltipBox |
void | Fl_Widget::copy_tooltip (const char *) |
void | Fl_Widget::tooltip (const char *) |
The Fl_Tooltip class provides tooltip support for all FLTK widgets.
It contains only static methods.
|
inlinestatic |
Gets the background color for tooltips.
The default background color is a pale yellow.
|
inlinestatic |
Sets the background color for tooltips.
The default background color is a pale yellow.
|
static |
Sets the current widget target.
Acts as though enter(widget) was done but does not pop up a tooltip. This is useful to prevent a tooltip from reappearing when a modal overlapping window is deleted. FLTK does this automatically when you click the mouse button.
|
inlinestatic |
Gets the tooltip delay.
The default delay is 1.0 seconds.
|
inlinestatic |
Sets the tooltip delay.
The default delay is 1.0 seconds.
|
inlinestatic |
Same as enable(0), disables tooltips on all widgets.
|
inlinestatic |
Enables tooltips on all widgets (or disables if b is false).
|
inlinestatic |
Returns non-zero if tooltips are enabled.
|
static |
You may be able to use this to provide tooltips for internal pieces of your widget.
Call this after setting Fl::belowmouse() to your widget (because that calls the above enter() method). Then figure out what thing the mouse is pointing at, and call this with the widget (this pointer is used to remove the tooltip if the widget is deleted or hidden, and to locate the tooltip), the rectangle surrounding the area, relative to the top-left corner of the widget (used to calculate where to put the tooltip), and the text of the tooltip (which must be a pointer to static data as it is not copied).
|
inlinestatic |
Gets the typeface for the tooltip text.
|
inlinestatic |
Sets the typeface for the tooltip text.
|
inlinestatic |
Gets the time until an open tooltip hides again.
The default delay is 12.0 seconds.
|
inlinestatic |
Sets the time until an open tooltip hides again.
The default delay is 12.0 seconds.
|
inlinestatic |
Gets the tooltip hover delay, the delay between tooltips.
The default delay is 0.2 seconds.
|
inlinestatic |
Sets the tooltip hover delay, the delay between tooltips.
The default delay is 0.2 seconds.
|
inlinestatic |
Gets the amount of extra space above and below the tooltip's text.
Default is 3.
|
inlinestatic |
Sets the amount of extra space above and below the tooltip's text.
Default is 3.
|
inlinestatic |
Gets the amount of extra space left/right of the tooltip's text.
Default is 3.
|
inlinestatic |
Sets the amount of extra space left/right of the tooltip's text.
Default is 3.
|
inlinestatic |
Gets the size of the tooltip text.
|
inlinestatic |
Sets the size of the tooltip text.
|
inlinestatic |
Gets the color of the text in the tooltip.
The default is black.
|
inlinestatic |
Sets the color of the text in the tooltip.
The default is black.
|
inlinestatic |
Gets the maximum width for tooltip's text before it word wraps.
Default is 400.
|
inlinestatic |
Sets the maximum width for tooltip's text before it word wraps.
Default is 400.