class Fl_Tooltip


Class Hierarchy

Include Files

Description

The Fl_Tooltip class provides tooltip support for all FLTK widgets.

Methods

void color(unsigned c);
Fl_Color color();

Gets or sets the background color for tooltips. The label color is set to white or black depending on the background color. The default background color is a pale yellow.

void delay(float f);
float delay();

Gets or sets the tooltip delay. The default delay is 0.5 seconds.

void disable();

Disables tooltips on all widgets.

int enabled();

Returns non-zero if tooltips are enabled.

void enable(int b = 1);

Enables tooltips on all widgets.

void enter(Fl_Widget *w);

This method is called when the mouse pointer enters a widget.

void exit(Fl_Widget *w);

This method is called when the mouse pointer leaves a widget.

void font(int i);
int font();

Gets or sets the typeface for the tooltip text.

void size(int s);
int size();

Gets or sets the size of the tooltip text.