Mercurial > otakunoraifu
comparison window/system.h @ 0:223b71206888
Initial import
author | thib |
---|---|
date | Fri, 01 Aug 2008 16:32:45 +0000 |
parents | |
children | 5ae5533b3a9a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:223b71206888 |
---|---|
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__ */ |