License
BSD-3-Clause
Tooltip control module for FLTK.
This module provides the Tooltip static class for controlling tooltip behavior globally, including appearance, timing, and enable/disable.
Example:
import fltk.tooltip;
// Configure tooltip appearance
Tooltip.delay = 0.5;
Tooltip.color = Color.yellow;
Tooltip.textColor = Color.black;
// Disable tooltips globally
Tooltip.disable();Static class for controlling tooltip behavior.
Fl_Tooltip provides global control over tooltip appearance and timing for all FLTK widgets. All methods are static since there is only one global tooltip configuration.
Example:
// Set tooltip delay to half a second
Tooltip.delay = 0.5;
// Change tooltip colors
Tooltip.color = Color.yellow;
Tooltip.textColor = Color.black;
// Temporarily disable tooltips
Tooltip.disable();
// ... do something ...
Tooltip.enable();int marginWidth() @property nothrow @nogcGets or sets the margin width (extra space left/right of text).int marginHeight() @property nothrow @nogcGets or sets the margin height (extra space above/below text).int wrapWidth() @property nothrow @nogcGets or sets the maximum width for tooltip text before word wrap.this()