Gazebo

FLTKMainWindow.hh

00001 #ifndef FLTKMAINWINDOW_HH
00002 #define FLTKMAINWINDOW_HH
00003 
00004 #include <FL/Fl.H>
00005 #include <FL/Fl_Window.H>
00006 #include <string>
00007 
00008 #include "Gui.hh"
00009 
00010 namespace gazebo
00011 {
00012 
00013   class FLTKGui;
00014   class InputHandler;
00015 
00017   class FLTKMainWindow : public Gui, public Fl_Window
00018   {
00020     public: FLTKMainWindow (int x, int y, int w, int h, const std::string &t);
00021  
00023     public: virtual ~FLTKMainWindow();
00024 
00026     public: virtual void Init();
00027 
00028     public: virtual void Update();
00029 
00031     public: virtual unsigned int GetWidth() const;
00032 
00034     public: virtual unsigned int GetHeight() const;
00035 
00037     public: void draw();
00038 
00040     public: void flush();
00041 
00043     public: void resize(int x, int y, int w, int h);
00044 
00046     public: int handle(int event);
00047 
00048     private: FLTKGui *glWindow;
00049     private: InputHandler *inputHandler;
00050   };
00051 
00052 }
00053 
00054 #endif

Last updated Aug 04 2007