Mercurial > mm7
comparison OSWindow.h @ 2067:2e08496c40c2
Слияние
author | Ritor1 |
---|---|
date | Tue, 03 Dec 2013 09:22:28 +0600 |
parents | b2a434d65344 |
children | d24ee391fd1f |
comparison
equal
deleted
inserted
replaced
2066:f7e5b9f236ae | 2067:2e08496c40c2 |
---|---|
4 | 4 |
5 class OSWindow: public UIControl | 5 class OSWindow: public UIControl |
6 { | 6 { |
7 public: | 7 public: |
8 static OSWindow *Create(const wchar_t *title, int window_width, int window_height); | 8 static OSWindow *Create(const wchar_t *title, int window_width, int window_height); |
9 void Delete(); | |
10 | 9 |
11 void SetFullscreenMode(); | 10 void SetFullscreenMode(); |
12 void SetWindowedMode(int new_window_width, int new_window_height); | 11 void SetWindowedMode(int new_window_width, int new_window_height); |
13 void SetCursor(const char *cursor_name); | 12 void SetCursor(const char *cursor_name); |
14 | 13 |
38 // UIControl | 37 // UIControl |
39 //virtual bool OnMouseLeave() override; | 38 //virtual bool OnMouseLeave() override; |
40 | 39 |
41 protected: | 40 protected: |
42 bool Initialize(const wchar_t *title, int window_width, int window_height); | 41 bool Initialize(const wchar_t *title, int window_width, int window_height); |
43 void Deinitialize(); | |
44 bool SetColorDepth(int bit); | |
45 bool WinApiMessageProc(UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *result); | 42 bool WinApiMessageProc(UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *result); |
46 | 43 |
47 HWND api_handle; | 44 HWND api_handle; |
48 | 45 |
49 private: | 46 private: |
50 bool ChangedColorDepth; | |
51 static LPARAM __stdcall WinApiMsgRouter(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); | 47 static LPARAM __stdcall WinApiMsgRouter(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); |
52 | 48 |
53 HMENU CreateDebugMenuPanel(); | 49 HMENU CreateDebugMenuPanel(); |
54 }; | 50 }; |