From 2be4d720ab2c97720a7ebb0a4c34581ed7df58fb Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 2 Feb 2019 23:56:45 +0100 Subject: Tooltips hide by themselves after 12 seconds (STR #2584). --- FL/Fl_Tooltip.H | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Tooltip.H b/FL/Fl_Tooltip.H index 984eb8694..e25cf9e6c 100644 --- a/FL/Fl_Tooltip.H +++ b/FL/Fl_Tooltip.H @@ -40,6 +40,10 @@ public: static float delay() { return delay_; } /** Sets the tooltip delay. The default delay is 1.0 seconds. */ static void delay(float f) { delay_ = f; } + /** Gets the time unitl an open tooltip hides again. The default delay is 12.0 seconds. */ + static float hidedelay() { return hidedelay_; } + /** Sets the time unitl an open tooltip hides again. The default delay is 12.0 seconds. */ + static void hidedelay(float f) { hidedelay_ = f; } /** Gets the tooltip hover delay, the delay between tooltips. The default delay is 0.2 seconds. @@ -105,6 +109,7 @@ private: private: static float delay_; //!< delay before a tooltip is shown + static float hidedelay_; //!< delay until tooltip is closed again static float hoverdelay_; //!< delay between tooltips static Fl_Color color_; static Fl_Color textcolor_; -- cgit v1.2.3