summaryrefslogtreecommitdiff
path: root/FL/Fl_Tooltip.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-12-12 19:52:26 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-12-12 19:52:26 +0000
commit318b3dea5750dfce5103a8fbce6eea38f7fcd613 (patch)
tree69532eb4658057f41e1c07f80314aaa68c046e28 /FL/Fl_Tooltip.H
parent495b3b5af5051dd69f595aa05989f679ed992fef (diff)
Added an 'Options' dialog (replacing test/preferences) that can be used to set system wide or user real options like Visible Focus.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Tooltip.H')
-rw-r--r--FL/Fl_Tooltip.H7
1 files changed, 3 insertions, 4 deletions
diff --git a/FL/Fl_Tooltip.H b/FL/Fl_Tooltip.H
index 49419c985..33b69cb6a 100644
--- a/FL/Fl_Tooltip.H
+++ b/FL/Fl_Tooltip.H
@@ -55,11 +55,11 @@ public:
*/
static void hoverdelay(float f) { hoverdelay_ = f; }
/** Returns non-zero if tooltips are enabled. */
- static int enabled() { return enabled_; }
+ static int enabled() { return Fl::option(Fl::OPTION_SHOW_TOOLTIPS); }
/** Enables tooltips on all widgets (or disables if <i>b</i> is false). */
- static void enable(int b = 1) { enabled_ = b;}
+ static void enable(int b = 1) { Fl::option(Fl::OPTION_SHOW_TOOLTIPS, b);}
/** Same as enable(0), disables tooltips on all widgets. */
- static void disable() { enabled_ = 0; }
+ static void disable() { enable(0); }
static void (*enter)(Fl_Widget* w);
static void enter_area(Fl_Widget* w, int X, int Y, int W, int H, const char* tip);
static void (*exit)(Fl_Widget *w);
@@ -100,7 +100,6 @@ private:
private:
static float delay_; //!< delay before a tooltip is shown
static float hoverdelay_; //!< delay between tooltips
- static int enabled_;
static Fl_Color color_;
static Fl_Color textcolor_;
static Fl_Font font_;