|
Darc Library
2012.11
|
Wrapper class for window management (Windows OS). More...
#include <px_window_x.h>
Public Types | |
| typedef void(* | PFNCALLBACK )(HWND, UInt, WPARAM, LPARAM) |
Public Member Functions | |
| PX_Window () | |
| DCR | Init (int _width, int _height, const char *_title, const HICON _hIcon) |
| Creates a window instance. | |
| void | RegisterWinProc (PFNCALLBACK _f) |
| This registers a user defined windows callback function. | |
| ~PX_Window () | |
| DCR | Destroy () |
| HWND | GetWindowHandle () |
| bool | IsActive () |
| const core::VectorUI2D & | GetMousePosition () |
| void | SetActive (bool _b) |
Wrapper class for window management (Windows OS).
| typedef void(* darc::protox::PX_Window::PFNCALLBACK)(HWND, UInt, WPARAM, LPARAM) |
| darc::protox::PX_Window::PX_Window | ( | ) | [inline] |
| darc::protox::PX_Window::~PX_Window | ( | ) | [inline] |
Destroys window instance. Calls DestroyWindow() and UnregisterClass().
| const VectorUI2D & darc::protox::PX_Window::GetMousePosition | ( | ) |
| HWND darc::protox::PX_Window::GetWindowHandle | ( | ) | [inline] |
| DCR darc::protox::PX_Window::Init | ( | int | _width, |
| int | _height, | ||
| const char * | _title, | ||
| const HICON | _hIcon | ||
| ) |
Creates a window instance.
| _width | Width of this window. |
| _height | Height of this window. |
| _title | Unique title of this window. |
| _hIcon | Handle to an icon. Can be NULL. |
| bool darc::protox::PX_Window::IsActive | ( | ) | [inline] |
This registers a user defined windows callback function.
Note that this call replaces the built-in version so make sure you re-implement everything necessary.
| void darc::protox::PX_Window::SetActive | ( | bool | _b | ) | [inline] |