Win32WindowManager Class Reference

#include <win32WindowMgr.h>

Inheritance diagram for Win32WindowManager:

Inheritance graph
[legend]
List of all members.

Detailed Description

Win32 implementation of the window manager interface.


Public Member Functions

 Win32WindowManager ()
 ~Win32WindowManager ()
virtual RectI getPrimaryDesktopArea ()
 Return the extents in window coordinates of the primary desktop area.
virtual S32 getDesktopBitDepth ()
 Retrieve the currently set desktop bit depth.
virtual Point2I getDesktopResolution ()
 Retrieve the currently set desktop resolution.
virtual void getMonitorRegions (Vector< RectI > &regions)
 Populate a vector with all monitors and their extents in window space.
virtual PlatformWindowcreateWindow (GFXDevice *device, const GFXVideoMode &mode)
 Create a new window, appropriate for the specified device and mode.
virtual void getWindows (VectorPtr< PlatformWindow * > &windows)
 Populate a list with references to all the windows created from this manager.
virtual void setParentWindow (void *newParent)
 Set the parent window.
virtual voidgetParentWindow ()
 Get the parent window.
virtual PlatformWindowgetWindowById (WindowId id)
 Get a window from a device ID.
virtual PlatformWindowgetFirstWindow ()
 Get the first window in the window list.
virtual PlatformWindowgetFocusedWindow ()
 Get the window that currently has the input focus or NULL.
virtual void lowerCurtain ()
 This method cues the appearance of that window ("lowering the curtain").
virtual void raiseCurtain ()

Private Member Functions

virtual void _processCmdLineArgs (const S32 argc, const char **argv)
 Process command line arguments from StandardMainLoop.
void linkWindow (Win32Window *w)
 Link the specified window into the window list.
void unlinkWindow (Win32Window *w)
 Remove specified window from the window list.
void _process ()
 Callback for the process list.

Static Private Member Functions

static BOOL CALLBACK MonitorEnumProc (HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData)
 Callback to receive information about available monitors.

Private Attributes

Win32WindowmWindowListHead
 List of allocated windows.
HWND mParentWindow
 Parent window, used in window setup in web plugin scenarios.
HWND mCurtainWindow
 If a curtain window is present, then its HWND will be stored here.

Friends

class Win32Window


Constructor & Destructor Documentation

Win32WindowManager::Win32WindowManager (  ) 

Win32WindowManager::~Win32WindowManager (  ) 


Member Function Documentation

virtual void Win32WindowManager::_processCmdLineArgs ( const S32  argc,
const char **  argv 
) [private, virtual]

Process command line arguments from StandardMainLoop.

This is done to allow web plugin functionality, where we are passed platform-specific information allowing us to set ourselves up in the web browser, to occur in a platform-neutral way.

Implements PlatformWindowManager.

void Win32WindowManager::linkWindow ( Win32Window w  )  [private]

Link the specified window into the window list.

void Win32WindowManager::unlinkWindow ( Win32Window w  )  [private]

Remove specified window from the window list.

void Win32WindowManager::_process (  )  [private]

Callback for the process list.

static BOOL CALLBACK Win32WindowManager::MonitorEnumProc ( HMONITOR  hMonitor,
HDC  hdcMonitor,
LPRECT  lprcMonitor,
LPARAM  dwData 
) [static, private]

Callback to receive information about available monitors.

virtual RectI Win32WindowManager::getPrimaryDesktopArea (  )  [virtual]

Return the extents in window coordinates of the primary desktop area.

On a single monitor system this is just the display extents. On a multimon system this is the primary monitor (which Torque should launch on).

Implements PlatformWindowManager.

virtual S32 Win32WindowManager::getDesktopBitDepth (  )  [virtual]

Retrieve the currently set desktop bit depth.

Returns:
The current desktop bit depth, or -1 if an error occurred

Implements PlatformWindowManager.

virtual Point2I Win32WindowManager::getDesktopResolution (  )  [virtual]

Retrieve the currently set desktop resolution.

Returns:
The current desktop bit depth, or Point2I(-1,-1) if an error occurred

Implements PlatformWindowManager.

virtual void Win32WindowManager::getMonitorRegions ( Vector< RectI > &  regions  )  [virtual]

Populate a vector with all monitors and their extents in window space.

Implements PlatformWindowManager.

virtual PlatformWindow* Win32WindowManager::createWindow ( GFXDevice device,
const GFXVideoMode mode 
) [virtual]

Create a new window, appropriate for the specified device and mode.

Returns:
Pointer to the new window.

Implements PlatformWindowManager.

virtual void Win32WindowManager::getWindows ( VectorPtr< PlatformWindow * > &  windows  )  [virtual]

Populate a list with references to all the windows created from this manager.

Implements PlatformWindowManager.

virtual void Win32WindowManager::setParentWindow ( void newParent  )  [virtual]

Set the parent window.

This can be used to render in a child window.

Implements PlatformWindowManager.

virtual void* Win32WindowManager::getParentWindow (  )  [virtual]

Get the parent window.

Implements PlatformWindowManager.

virtual PlatformWindow* Win32WindowManager::getWindowById ( WindowId  id  )  [virtual]

Get a window from a device ID.

Returns:
The window associated with the specified ID, or NULL if no match was found.

Implements PlatformWindowManager.

virtual PlatformWindow* Win32WindowManager::getFirstWindow (  )  [virtual]

Get the first window in the window list.

Returns:
The first window in the list, or NULL if no windows found

Implements PlatformWindowManager.

virtual PlatformWindow* Win32WindowManager::getFocusedWindow (  )  [virtual]

Get the window that currently has the input focus or NULL.

Implements PlatformWindowManager.

virtual void Win32WindowManager::lowerCurtain (  )  [virtual]

This method cues the appearance of that window ("lowering the curtain").

Implements PlatformWindowManager.

virtual void Win32WindowManager::raiseCurtain (  )  [virtual]

See also:
lowerCurtain
This method removes the curtain window.

Implements PlatformWindowManager.


Friends And Related Function Documentation

friend class Win32Window [friend]


Member Data Documentation

List of allocated windows.

Parent window, used in window setup in web plugin scenarios.

If a curtain window is present, then its HWND will be stored here.