Public Member Functions

Window Class Reference

Implementation of the IWindow interface. More...

#include <Window.h>

Inheritance diagram for Window:
IWindow

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 wchargetTitle (void)
 Get the window title.
const ::MouseMapgetMouseMap (void)
const ::KeyboardMapgetKeyboardMap (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 (  ) 

Definition at line 21 of file Window.cpp.

Window::~Window (  )  [virtual]

Definition at line 42 of file Window.cpp.


Member Function Documentation

pDevice Window::activateDevice ( ::DEVICE  type,
int  ID 
)

Definition at line 17 of file WindowInput.cpp.

NAMESPACE_START bool Window::activateInput ( ::DEVICE  type  ) 

Definition at line 5 of file WindowInput.cpp.

void Window::addListener ( ::pEventWindowListener  listener  ) 

Definition at line 471 of file Window.cpp.

void Window::addListener ( ::pEventDeviceListener  listener  ) 

Definition at line 476 of file Window.cpp.

void Window::addListener ( ::pEventRenderListener  listener  ) 

Definition at line 466 of file Window.cpp.

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]

Create cursor from file.

Implements IWindow.

Definition at line 421 of file Window.cpp.

pScreen Window::createScreen ( const wchar imageFile,
float  alpha 
) [virtual]

Show a simple screen with an image.

Implements IWindow.

Definition at line 493 of file Window.cpp.

void Window::deactivateDevice ( ::pDevice  device  ) 

Definition at line 21 of file WindowInput.cpp.

void Window::deactivateInput ( ::DEVICE  type  ) 

Definition at line 9 of file WindowInput.cpp.

int Window::fileDialog ( wchar out,
uint  outSize,
const wchar title,
::DIALOGFLAGS  flags,
const wchar filter 
)

Definition at line 280 of file Window.cpp.

void Window::freeCursor ( ::pCursor cur  ) 

Definition at line 425 of file Window.cpp.

void Window::freeScreen ( ::pScreen screen  ) 

Definition at line 505 of file Window.cpp.

pCursor Window::getCursor ( void   )  [virtual]

Get the current cursor.

Implements IWindow.

Definition at line 439 of file Window.cpp.

CursorPosition Window::getCursorPosition ( void   )  [virtual]

Get the current cursor position.

Implements IWindow.

Definition at line 459 of file Window.cpp.

uint Window::getDevices ( ::DeviceInfo array,
uint  size 
)

Definition at line 13 of file WindowInput.cpp.

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]

Implements IWindow.

Definition at line 69 of file Window.h.

const ::MouseMap& Window::getMouseMap ( void   )  [inline, virtual]

Implements IWindow.

Definition at line 68 of file Window.h.

pIWindow Window::getParent ( void   )  [virtual]

Get the parent window.

Implements IWindow.

Definition at line 311 of file Window.cpp.

WindowSize Window::getSize ( void   )  [virtual]

Get the window position and size.

Implements IWindow.

Definition at line 325 of file Window.cpp.

STATE Window::getState ( void   )  [virtual]

Get the window state.

Implements IWindow.

Definition at line 381 of file Window.cpp.

STYLE Window::getStyle ( void   )  [virtual]

Get the window style.

Implements IWindow.

Definition at line 408 of file Window.cpp.

const wchar * Window::getTitle ( void   )  [virtual]

Get the window title.

Implements IWindow.

Definition at line 417 of file Window.cpp.

void * Window::getWindow ( void   )  [virtual]

get pointer to the window.

Implements IWindow.

Definition at line 303 of file Window.cpp.

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::removeListener ( ::pEventWindowListener  listener  ) 

Definition at line 485 of file Window.cpp.

void Window::removeListener ( ::pEventDeviceListener  listener  ) 

Definition at line 489 of file Window.cpp.

void Window::removeListener ( ::pEventRenderListener  listener  ) 

Definition at line 481 of file Window.cpp.

void Window::setCursor ( ::pCursor  cur  ) 

Definition at line 432 of file Window.cpp.

void Window::setCursorPosition ( ::CursorPosition  cursorPos  ) 

Definition at line 455 of file Window.cpp.

void Window::setCursorPosition ( int  x,
int  y 
) [virtual]

Set the current cursor position.

Implements IWindow.

Definition at line 447 of file Window.cpp.

void Window::setSize ( int  x,
int  y,
int  width,
int  height 
) [virtual]

Set window size and position.

Implements IWindow.

Definition at line 315 of file Window.cpp.

void Window::setSize ( ::WindowSize  wndSize  ) 

Definition at line 321 of file Window.cpp.

void Window::setState ( ::STATE  state  ) 

Definition at line 336 of file Window.cpp.

void Window::setStyle ( ::STYLE  style  ) 

Definition at line 385 of file Window.cpp.

void Window::setTitle ( const wchar title  )  [virtual]

Set window title.

Implements IWindow.

Definition at line 412 of file Window.cpp.

void Window::showCursor ( bool   )  [virtual]

Show or hide the cursor.

Implements IWindow.

Definition at line 443 of file Window.cpp.

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: