From f6769cebc6734ac38b4732da4997751f6d4cc94c Mon Sep 17 00:00:00 2001
From: Michael R Sweet
Date: Sun, 14 Sep 2003 14:11:06 +0000
Subject: Add Fl_Tooltip::hoverdelay() method and code (STR #126)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
---
CHANGES | 2 ++
FL/Fl_Tooltip.H | 7 +++++--
documentation/Fl_Tooltip.html | 19 +++++++++++++------
src/Fl_Tooltip.cxx | 12 ++++++++----
4 files changed, 28 insertions(+), 12 deletions(-)
diff --git a/CHANGES b/CHANGES
index 88b6bab28..aa2524122 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
CHANGES IN FLTK 1.1.5rc1
+ - Added new hoverdelay() to Fl_Tooltip to control how
+ quickly recent tooltips appear (STR #126)
- FLUID now sets the size range when a window is shown.
This seems to be necessary with some window managers
(STR #166)
diff --git a/FL/Fl_Tooltip.H b/FL/Fl_Tooltip.H
index ce7b0721a..6582087b2 100644
--- a/FL/Fl_Tooltip.H
+++ b/FL/Fl_Tooltip.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Tooltip.H,v 1.16.2.10 2003/01/30 21:40:28 easysw Exp $"
+// "$Id: Fl_Tooltip.H,v 1.16.2.11 2003/09/14 14:11:06 easysw Exp $"
//
// Tooltip header file for the Fast Light Tool Kit (FLTK).
//
@@ -33,6 +33,8 @@ class FL_EXPORT Fl_Tooltip {
public:
static float delay() { return delay_; }
static void delay(float f) { delay_ = f; }
+ static float hoverdelay() { return hoverdelay_; }
+ static void hoverdelay(float f) { hoverdelay_ = f; }
static int enabled() { return enabled_; }
static void enable(int b = 1) { enabled_ = b;}
static void disable() { enabled_ = 0; }
@@ -52,6 +54,7 @@ public:
static Fl_Color textcolor() { return (Fl_Color)textcolor_; }
private:
static float delay_;
+ static float hoverdelay_;
static int enabled_;
static unsigned color_;
static unsigned textcolor_;
@@ -63,5 +66,5 @@ private:
#endif
//
-// End of "$Id: Fl_Tooltip.H,v 1.16.2.10 2003/01/30 21:40:28 easysw Exp $".
+// End of "$Id: Fl_Tooltip.H,v 1.16.2.11 2003/09/14 14:11:06 easysw Exp $".
//
diff --git a/documentation/Fl_Tooltip.html b/documentation/Fl_Tooltip.html
index 9ac2a2165..f44c2f0c8 100644
--- a/documentation/Fl_Tooltip.html
+++ b/documentation/Fl_Tooltip.html
@@ -36,6 +36,7 @@ all FLTK widgets.
enter_area
exit
font
+ hoverdelay
size
textcolor
@@ -86,21 +87,27 @@ Fl_Color color();
Gets or sets the background color for tooltips. The default
background color is a pale yellow.
-
-
-Gets or sets the color of the text in the tooltip. The default is
-black.
-
Gets or sets the typeface for the tooltip text.
+
+
+Gets or sets the tooltip hover delay, the delay between tooltips.
+The default delay is 0.2 seconds.
+
Gets or sets the size of the tooltip text.
+
+
+Gets or sets the color of the text in the tooltip. The default is
+black.
+