fshake3d  0.0.1
FreeformDensity3DSurfaceEditor
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
ui_Window.hpp
Go to the documentation of this file.
00001 #ifndef UI_WINDOW_HPP
00002 #define UI_WINDOW_HPP
00003 
00004 #include "ui_peer.hpp"
00005 #include "ui_Event.hpp"
00006 
00007 void InitToolkit(int& argc, char* argv[]);
00008 void RunMainLoop();
00009 
00010 class Window : public EventSource
00011 {
00012 public:
00013   Window();
00014   ~Window();
00015   int  getX() const;
00016   int  getY() const;
00017   int  getWidth() const;
00018   int  getHeight() const;
00019   void setTitle(const char* title);
00020   void setLocation(int x, int y);
00021   void setSize(int w, int h);
00022   void setViewport(int x, int y, int w, int h);
00023   void setVisible(bool visible);
00024   void captureMouseMotion(EventTarget* target);
00025   void releaseMouseMotion();
00026   void destroyWindow();
00027 private:
00028   int mWindowId;
00029   EventTarget* mpCaptureMouseMotionTarget;
00030 };
00031 
00032 #endif // UI_WINDOW_HPP