comparison window/system.h @ 52:15a18fbe6f21

* Known bugs added to the README * Code cleaning (0 -> NULL when needed, indentation, spaces, ...)
author thib
date Sat, 18 Apr 2009 18:35:39 +0000
parents 5ae5533b3a9a
children c7bcc0ec2267
comparison
equal deleted inserted replaced
51:cbb301016a4e 52:15a18fbe6f21
26 */ 26 */
27 27
28 #ifndef __SYSTEM__ 28 #ifndef __SYSTEM__
29 #define __SYSTEM__ 29 #define __SYSTEM__
30 30
31 #include<SDL.h> 31 #include <SDL.h>
32 #include"event.h" 32 #include "event.h"
33 #include"picture.h" 33 #include "picture.h"
34 #include"widget.h" 34 #include "widget.h"
35 35
36 namespace System { 36 namespace System {
37 struct Main { 37 struct Main {
38 int framerate; 38 int framerate;
39 static int event_filter(const SDL_Event* event); 39 static int event_filter(const SDL_Event* event);
40 static bool is_exit; 40 static bool is_exit;
41 static bool is_video_update; 41 static bool is_video_update;
42 static Main* instance; 42 static Main* instance;
43 WidMouseCursor* cursor; 43 WidMouseCursor* cursor;
44 public: 44 public:
45 Event::Container event; 45 Event::Container event;
46 PicRoot root; 46 PicRoot root;
47 Main(void); 47 Main(void);
48 ~Main(); 48 ~Main();
49 void Mainloop(void); 49 void Mainloop(void);
50 static void Quit(void); 50 static void Quit(void);
51 static void DisableVideo(void); 51 static void DisableVideo(void);
52 static void EnableVideo(void); 52 static void EnableVideo(void);
53 #define DEFAULT_MOUSECURSOR (Surface*)0xffff0000 53 #define DEFAULT_MOUSECURSOR (Surface*)0xffff0000 //FIXME: WTF?!?
54 static void SetCursor(Surface* s, const Rect& r); 54 static void SetCursor(Surface* s, const Rect& r);
55 }; 55 };
56 }; 56 }
57 57
58 #endif /* __SYSTEM__ */ 58 #endif /* __SYSTEM__ */