]> Shamusworld >> Repos - apple2/blobdiff - src/gui/draggablewindow.h
Fixed misc. bugs preventing certain games from working, added pause mode.
[apple2] / src / gui / draggablewindow.h
index 41e89667dc4b33f8e16b5d54eba3389de4d86b5b..a658cb9944d74a998ef79ec514f712089f8a5bea 100755 (executable)
@@ -15,12 +15,12 @@ class Button;                                                                       // Forward declaration
 class DraggableWindow: public Element
 {
        public:
-               DraggableWindow(uint32 x = 0, uint32 y = 0, uint32 w = 0, uint32 h = 0,
+               DraggableWindow(uint32_t x = 0, uint32_t y = 0, uint32_t w = 0, uint32_t h = 0,
                        void (* f)(Element *) = NULL);
                ~DraggableWindow(); //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);
@@ -33,7 +33,7 @@ class DraggableWindow: public Element
                SDL_Rect offset;
 
        private:
-               uint16 cbWidth, cbHeight;
+               uint16_t cbWidth, cbHeight;
                SDL_Surface * cbUp, * cbDown, * cbHover;
                SDL_Surface * img;
 };