diff options
| author | Matthias Melcher <git@matthiasm.com> | 2019-02-02 23:56:45 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2019-02-02 23:56:45 +0100 |
| commit | 2be4d720ab2c97720a7ebb0a4c34581ed7df58fb (patch) | |
| tree | aa03da65f70dd6abee302f5717504b017a58878a /FL/Fl_Tooltip.H | |
| parent | 0bf8197a24cb004f402de18e005d9f00819d958c (diff) | |
Tooltips hide by themselves after 12 seconds (STR #2584).
Diffstat (limited to 'FL/Fl_Tooltip.H')
| -rw-r--r-- | FL/Fl_Tooltip.H | 5 |
1 files changed, 5 insertions, 0 deletions
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_; |
