]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/root.h
Add Text class with multiline support
[libs/gltk.git] / source / root.h
index 36efba794c064c4fd854b31fc21654716e196eb4..7cbd82744bb0d0426e6ff07108dfdbaded67896d 100644 (file)
@@ -10,11 +10,14 @@ Distributed under the LGPL
 
 #include <sigc++/trackable.h>
 #include <msp/gbase/window.h>
+#include <msp/time/timestamp.h>
 #include "panel.h"
 
 namespace Msp {
 namespace GLtk {
 
+class Label;
+
 /**
 A Root is a special type of Panel that covers and entire Window and accepts
 input from it.  When created, a Root widget will take its size from the window
@@ -25,9 +28,15 @@ class Root: public Panel, public sigc::trackable
 {
 private:
        Graphics::Window &window;
+       Label *lbl_tooltip;
+       int pointer_x;
+       int pointer_y;
+       Msp::Time::TimeStamp tooltip_timeout;
+       Widget *tooltip_target;
 
 public:
        Root(const Resources &, Graphics::Window &);
+       void tick();
 private:
        virtual const char *get_class() const { return "root"; }
        void button_press_event(int, int, unsigned, unsigned);