0
|
1 #ifndef __SYSTEM__
|
|
2 #define __SYSTEM__
|
|
3
|
|
4 #include<SDL.h>
|
|
5 #include"event.h"
|
|
6 #include"picture.h"
|
|
7 #include"widget.h"
|
|
8
|
|
9 namespace System {
|
|
10 struct Main {
|
|
11 int framerate;
|
|
12 static int event_filter(const SDL_Event* event);
|
|
13 static bool is_exit;
|
|
14 static bool is_video_update;
|
|
15 static Main* instance;
|
|
16 WidMouseCursor* cursor;
|
|
17 public:
|
|
18 Event::Container event;
|
|
19 PicRoot root;
|
|
20 Main(void);
|
|
21 ~Main();
|
|
22 void Mainloop(void);
|
|
23 static void Quit(void);
|
|
24 static void DisableVideo(void);
|
|
25 static void EnableVideo(void);
|
|
26 #define DEFAULT_MOUSECURSOR (Surface*)0xffff0000
|
|
27 static void SetCursor(Surface* s, const Rect& r);
|
|
28 };
|
|
29 };
|
|
30
|
|
31 #endif /* __SYSTEM__ */
|