List of all members.
Public Member Functions |
| Window () |
virtual | ~Window () |
bool | init (int x, int y, int width, int height, const wchar *title,::STATE state,::STYLE style,::pIWindow parent, float alpha) |
void | uninit (void) |
int | fileDialog (wchar *out, uint outSize, const wchar *title,::DIALOGFLAGS flags, const wchar *filter) |
void * | getWindow (void) |
| get pointer to the window.
|
void * | getDisplay (void) |
| get pointer to the display (UNIX systems).
|
::pIWindow | getParent (void) |
| Get the parent window.
|
void | setSize (int x, int y, int width, int height) |
| Set window size and position.
|
void | setSize (::WindowSize) |
::WindowSize | getSize (void) |
| Get the window position and size.
|
void | setState (::STATE) |
::STATE | getState (void) |
| Get the window state.
|
void | setStyle (::STYLE) |
::STYLE | getStyle (void) |
| Get the window style.
|
void | setTitle (const wchar *) |
| Set window title.
|
const wchar * | getTitle (void) |
| Get the window title.
|
const ::MouseMap & | getMouseMap (void) |
const ::KeyboardMap & | getKeyboardMap (void) |
bool | activateInput (::DEVICE) |
void | deactivateInput (::DEVICE) |
uint | getDevices (::DeviceInfo *array, uint size) |
::pDevice | activateDevice (::DEVICE type, int ID) |
void | deactivateDevice (::pDevice device) |
::pCursor | createCursor (const wchar *file) |
| Create cursor from file.
|
void | freeCursor (::pCursor &) |
void | setCursor (::pCursor) |
::pCursor | getCursor (void) |
| Get the current cursor.
|
void | showCursor (bool show) |
| Show or hide the cursor.
|
void | setCursorPosition (int x, int y) |
| Set the current cursor position.
|
void | setCursorPosition (::CursorPosition) |
::CursorPosition | getCursorPosition (void) |
| Get the current cursor position.
|
void | addListener (::pEventRenderListener) |
void | addListener (::pEventWindowListener) |
void | addListener (::pEventDeviceListener) |
void | removeListener (::pEventRenderListener) |
void | removeListener (::pEventWindowListener) |
void | removeListener (::pEventDeviceListener) |
::pScreen | createScreen (const wchar *imageFile, float alpha) |
| Show a simple screen with an image.
|
void | freeScreen (::pScreen &screen) |
void | loop (void) |
void | close (void) |
| Send close message. The window will be closed.
|
Detailed Description
Implementation of the IWindow interface.
Definition at line 38 of file Window.h.
Constructor & Destructor Documentation
Window::~Window |
( |
|
) |
[virtual] |
Member Function Documentation
NAMESPACE_START bool Window::activateInput |
( |
::DEVICE |
type |
) |
|
void Window::close |
( |
void |
|
) |
[virtual] |
Send close message. The window will be closed.
Implements IWindow.
Definition at line 521 of file Window.cpp.
pCursor Window::createCursor |
( |
const wchar * |
file |
) |
[virtual] |
pScreen Window::createScreen |
( |
const wchar * |
imageFile, |
|
|
float |
alpha | |
|
) |
| | [virtual] |
void Window::deactivateDevice |
( |
::pDevice |
device |
) |
|
void Window::deactivateInput |
( |
::DEVICE |
type |
) |
|
void Window::freeCursor |
( |
::pCursor & |
cur |
) |
|
void Window::freeScreen |
( |
::pScreen & |
screen |
) |
|
pCursor Window::getCursor |
( |
void |
|
) |
[virtual] |
void * Window::getDisplay |
( |
void |
|
) |
[virtual] |
get pointer to the display (UNIX systems).
Implements IWindow.
Definition at line 307 of file Window.cpp.
const ::KeyboardMap& Window::getKeyboardMap |
( |
void |
|
) |
[inline, virtual] |
const ::MouseMap& Window::getMouseMap |
( |
void |
|
) |
[inline, virtual] |
pIWindow Window::getParent |
( |
void |
|
) |
[virtual] |
STATE Window::getState |
( |
void |
|
) |
[virtual] |
STYLE Window::getStyle |
( |
void |
|
) |
[virtual] |
const wchar * Window::getTitle |
( |
void |
|
) |
[virtual] |
void * Window::getWindow |
( |
void |
|
) |
[virtual] |
bool Window::init |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height, |
|
|
const wchar * |
title, |
|
|
::STATE |
state, |
|
|
::STYLE |
style, |
|
|
::pIWindow |
parent, |
|
|
float |
alpha | |
|
) |
| | |
void Window::loop |
( |
void |
|
) |
[virtual] |
Main Loop of the window. After calling this method the window starts retrieving window messages and drawing requests.
Implements IWindow.
Definition at line 25 of file WindowInput.cpp.
void Window::setCursor |
( |
::pCursor |
cur |
) |
|
void Window::setCursorPosition |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | [virtual] |
void Window::setSize |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | [virtual] |
void Window::setState |
( |
::STATE |
state |
) |
|
void Window::setStyle |
( |
::STYLE |
style |
) |
|
void Window::setTitle |
( |
const wchar * |
title |
) |
[virtual] |
void Window::showCursor |
( |
bool |
|
) |
[virtual] |
void Window::uninit |
( |
void |
|
) |
[virtual] |
Uninitialize the window. The window will be removed from the OS window manager and can not be used by other windows or for the user interface.
Implements IWindow.
Definition at line 241 of file Window.cpp.
The documentation for this class was generated from the following files: