1 /* This file is part of Dilay
2  * Copyright © 2015-2018 Alexander Bau
3  * Use and redistribute under the terms of the GNU General Public License
4  */
5 #ifndef DILAY_VIEW_TOOL_TIP
6 #define DILAY_VIEW_TOOL_TIP
7 
8 #include <functional>
9 #include "macro.hpp"
10 #include "view/input.hpp"
11 
12 class ViewToolTip
13 {
14 public:
15   DECLARE_BIG6 (ViewToolTip)
16 
17   void render (const std::function<void(const QString&, const QString&)>&) const;
18 
19   void add (ViewInputEvent, ViewInputModifier, const QString&);
20   void add (ViewInputEvent, const QString&);
21   void reset ();
22   bool isEmpty () const;
23 
24 private:
25   IMPLEMENTATION
26 };
27 
28 #endif
29