X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Froot.h;h=36efba794c064c4fd854b31fc21654716e196eb4;hb=08aedc8b2a1fa5e47a79b212526138ae6244e61f;hp=0d30951f41984b79da011be65164118bcc47be70;hpb=1fde94c15fc65e85f5931a9daf74dd8806e682e0;p=libs%2Fgltk.git diff --git a/source/root.h b/source/root.h index 0d30951..36efba7 100644 --- a/source/root.h +++ b/source/root.h @@ -1,13 +1,14 @@ /* $Id$ This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ #ifndef MSP_GLTK_ROOT_H_ #define MSP_GLTK_ROOT_H_ +#include #include #include "panel.h" @@ -20,13 +21,13 @@ input from it. When created, a Root widget will take its size from the window it is created for. The size can be changed, but a Root should always be rendered to fill the window in order to get coordinates mapped correctly. */ -class Root: public Panel +class Root: public Panel, public sigc::trackable { private: - Window &window; + Graphics::Window &window; public: - Root(Resources &, Window &); + Root(const Resources &, Graphics::Window &); private: virtual const char *get_class() const { return "root"; } void button_press_event(int, int, unsigned, unsigned);