]> Shamusworld >> Repos - apple2/blob - src/gui/draggablewindow2.h
Added missing files. :-P
[apple2] / src / gui / draggablewindow2.h
1 //
2 // DRAGGABLEWINDOW2.H
3 //
4 // Graphical User Interface window class
5 //
6
7 #ifndef __DRAGGABLEWINDOW2_H__
8 #define __DRAGGABLEWINDOW2_H__
9
10 #include "window.h"
11 #include <vector>
12
13 class DraggableWindow2: public Window
14 {
15         public:
16                 DraggableWindow2(uint32_t x = 0, uint32_t y = 0, uint32_t w = 0, uint32_t h = 0,
17                         void (* f)(Element *) = NULL);
18                 ~DraggableWindow2(); // Does this destructor need to be virtual? No, it doesn't!
19                 virtual void HandleMouseMove(uint32_t x, uint32_t y);
20                 virtual void HandleMouseButton(uint32_t x, uint32_t y, bool mouseDown);
21                 virtual void Draw(void);
22
23         protected:
24                 bool clicked;
25                 SDL_Rect offset;
26
27         private:
28                 SDL_Surface * img;
29 //              SDL_Surface * label;
30 };
31
32 #endif  // __DRAGGABLEWINDOW2_H__