X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Froot.h;h=7cbd82744bb0d0426e6ff07108dfdbaded67896d;hb=1e06dc208a02e68cf1bb127927e3ad5af3657c58;hp=36efba794c064c4fd854b31fc21654716e196eb4;hpb=8a0058b5b90bb7e9eacf1646142f4d73b426fd66;p=libs%2Fgltk.git diff --git a/source/root.h b/source/root.h index 36efba7..7cbd827 100644 --- a/source/root.h +++ b/source/root.h @@ -10,11 +10,14 @@ Distributed under the LGPL #include #include +#include #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);