-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUI_IDrawable.h
47 lines (29 loc) · 901 Bytes
/
GUI_IDrawable.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef GUI_IDRAWABLE_H
#define GUI_IDRAWABLE_H
//--------------------------------------------------------------------------------
//#include "GUI_Window.h"
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_ttf.h"
#include "SDL_tools.h"
//--------------------------------------------------------------------------------
class GUI_Window;
//--------------------------------------------------------------------------------
class GUI_IDrawable
{
protected:
SDL_Surface *container;
int width;
int height;
public:
int x;
int y;
GUI_Window *parent;
GUI_IDrawable(int _x, int _y, int _width, int _height);
virtual ~GUI_IDrawable(void);
virtual void ProcessEvent(SDL_Event *event);
void SetPosition(int dx, int dy);
virtual void Render(SDL_Surface *dest) = 0;
};
//--------------------------------------------------------------------------------
#endif