Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tooltip.h')
-rw-r--r--src/ui/tooltip.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/ui/tooltip.h b/src/ui/tooltip.h
index 0cfa12d..629863a 100644
--- a/src/ui/tooltip.h
+++ b/src/ui/tooltip.h
@@ -23,23 +23,37 @@ class Tooltip : public Label
/**
* @brief resize the tooltip
- */
+ * */
virtual void resize();
/**
* @brief show the tooltip
- */
+ * */
virtual void show();
/**
* @brief hide the tooltip
- */
+ * */
virtual void hide();
/**
+ * @brief draw event distributor
+ * The default draw event distributor is overwritten to do nothing.
+ * Tooltips are drawn separately because the need to be on top of everything else.
+ * @see event_draw_global
+ * */
+ virtual void event_draw();
+
+ /**
+ * @brief global draw event distributor
+ * This is called by the user interface to draw the tooltip after everything else.
+ * */
+ static void event_draw_global();
+
+ /**
* @brief the tooltip that is currently visible, nullptr if no tooltip is currently shown
*
- **/
+ * */
static inline Tooltip *global()
{
return tooltip_global;