00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00020 #ifndef __gewiwindow_h__
00021 #define __gewiwindow_h__
00022 
00023 #include "GewiEngine.h"
00024 #include "GewiContainer.h"
00025 
00026 namespace Gewi
00027 {
00028 
00034 class GWindow : public GContainer
00035 {
00036     protected:
00038         bool rDrag;
00040         float rDragX;
00042         float rDragY;
00044         ResourceID rBackground;
00045 
00046     public:
00053         GWindow(GContainer *parent=NULL);
00054 
00065         virtual void Create(float x, float y, float width, float height, ResourceID backgroundImg);
00066 
00077         virtual void Message(SDL_Event *rawEvent, GewiEvent event, Uint16 mouseX, Uint16 mouseY, char ch);
00078 
00084         virtual void Show();
00085 };
00086 
00087 }
00088 
00089 #endif //__gewiwindow_h__