X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Felement.h;fp=src%2Fgui%2Felement.h;h=0000000000000000000000000000000000000000;hb=94e1e961b57f253b760298ab0bae96a7de6d20fa;hp=b54fc7c0f1bcc8bbac1e806cfc65fc6749392111;hpb=f95620384355f3db89f779e1e7be59260ecfc6ff;p=virtualjaguar diff --git a/src/gui/element.h b/src/gui/element.h deleted file mode 100644 index b54fc7c..0000000 --- a/src/gui/element.h +++ /dev/null @@ -1,40 +0,0 @@ -// -// GUI element base class -// -// by James L. Hammons -// - -#ifndef __ELEMENT_H__ -#define __ELEMENT_H__ - -#include "SDL.h" -#include "types.h" - -class Element -{ - public: - Element(uint32 x = 0, uint32 y = 0, uint32 w = 0, uint32 h = 0) - { extents.x = x, extents.y = y, extents.w = w, extents.h = h; } - // These are "pure" virtual functions... - virtual void HandleKey(SDLKey key) = 0; - virtual void HandleMouseMove(uint32 x, uint32 y) = 0; - virtual void HandleMouseButton(uint32 x, uint32 y, bool mouseDown) = 0; - virtual void Draw(uint32, uint32) = 0; - virtual void Notify(Element *) = 0; -//Needed? virtual ~Element() = 0; -//We're not allocating anything in the base class, so the answer would be NO. - bool Inside(uint32 x, uint32 y); - - // Class method - static void SetScreenAndPitch(uint32 * s, uint32 p) { screenBuffer = s, pitch = p; } - - protected: - SDL_Rect extents; - uint32 state; - - // Class variables... - static uint32 * screenBuffer; - static uint32 pitch; -}; - -#endif // __ELEMENT_H__