28#include "color_types.h"
31using TooltipCallback = std::function<void(
const Tooltip *)>;
41 Tooltip(wxWindow *parent, TooltipCallback on_destroy);
91 bool Destroy()
override;
94 void OnPaint(wxPaintEvent &event);
95 void OnTimer(wxTimerEvent &event);
99 void CalculateOptimalPosition();
108 wxPoint m_requestedPosition;
110 wxColour m_back_color;
111 wxColour m_text_color;
117 TooltipCallback m_on_destroy;
119 DECLARE_EVENT_TABLE()
172 const wxPoint &position,
bool hiviz =
false);
197 Tooltip *GetOrCreateTooltip(wxWindow *parent);
198 void CleanupTooltip();
201 wxWindow *m_currentParent;
202 ColorScheme m_colorScheme;