Darc Library  2012.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
darc::protox::PX_Window Class Reference

Wrapper class for window management (Windows OS). More...

#include <px_window_x.h>

List of all members.

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::VectorUI2DGetMousePosition ()
void SetActive (bool _b)

Detailed Description

Wrapper class for window management (Windows OS).


Member Typedef Documentation

typedef void(* darc::protox::PX_Window::PFNCALLBACK)(HWND, UInt, WPARAM, LPARAM)

Constructor & Destructor Documentation


Member Function Documentation

Destroys window instance. Calls DestroyWindow() and UnregisterClass().

DCR darc::protox::PX_Window::Init ( int  _width,
int  _height,
const char *  _title,
const HICON  _hIcon 
)

Creates a window instance.

Parameters:
_widthWidth of this window.
_heightHeight of this window.
_titleUnique title of this window.
_hIconHandle to an icon. Can be NULL.
Returns:
DC_OK on success, DC_NOTAVAILABLE if window is already initialized or DC_ERROR if something went wrong.

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]

The documentation for this class was generated from the following files: