X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fwindow.h;h=0a4fd3262e22874c6eb2afd553d40e48d788c70c;hb=c0001155bc0909da61f6c849c0be9b16e9b7f4b6;hp=7ff215032fbb9dca36b16328332fa4c94e89dca9;hpb=eeb2935c12ef41a63049126748c2574b324403a5;p=apple2 diff --git a/src/gui/window.h b/src/gui/window.h index 7ff2150..0a4fd32 100755 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -15,15 +15,17 @@ class Button; // Forward declaration class Window: public Element { public: - Window(uint32 x = 0, uint32 y = 0, uint32 w = 0, uint32 h = 0, + Window(uint32_t x = 0, uint32_t y = 0, uint32_t w = 0, uint32_t h = 0, void (* f)(Element *) = NULL); ~Window(); //Does this destructor need to be virtual? Not sure... Check! - virtual void HandleKey(SDLKey key); - virtual void HandleMouseMove(uint32 x, uint32 y); - virtual void HandleMouseButton(uint32 x, uint32 y, bool mouseDown); + virtual void HandleKey(SDL_Scancode key); + virtual void HandleMouseMove(uint32_t x, uint32_t y); + virtual void HandleMouseButton(uint32_t x, uint32_t y, bool mouseDown); virtual void Draw(void); virtual void Notify(Element *); void AddElement(Element * e); + void AddCloseButton(void); + void SetBackgroundDraw(bool); protected: void (* handler)(Element *); @@ -31,8 +33,9 @@ class Window: public Element std::vector list; private: - uint16 cbWidth, cbHeight; + uint16_t cbWidth, cbHeight; SDL_Surface * cbUp, * cbDown, * cbHover; + bool drawBackground; }; #endif // __WINDOW_H__