XB360WindowManager Class Reference

#include <xb360WindowMgr.h>

Inheritance diagram for XB360WindowManager:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 XB360WindowManager ()
 ~XB360WindowManager ()
virtual RectI getPrimaryDesktopArea ()
 Return the extents in window coordinates of the primary desktop area.
virtual void getMonitorRegions (Vector< RectI > &regions)
 Populate a vector with all monitors and their extents in window space.
virtual Point2I getDesktopResolution ()
 Retrieve the currently set desktop resolution.
virtual PlatformWindowcreateWindow (GFXDevice *device, const GFXVideoMode &mode)
 Create a new window, appropriate for the specified device and mode.
virtual void getWindows (Vector< PlatformWindow * > &windows)
virtual PlatformWindowgetWindowById (DeviceId 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 S32 getDesktopBitDepth ()
 Retrieve the currently set desktop bit depth.
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 (XB360Window *w)
 Link the specified window into the window list.
void unlinkWindow (XB360Window *w)
 Remove specified window from the window list.
void _process ()
 Callback for the process list.

Private Attributes

S32 mDeviceIdSource
 Generator for device IDs.
XB360WindowmWindowListHead
 List of allocated windows.

Friends

class XB360Window

Constructor & Destructor Documentation

XB360WindowManager::XB360WindowManager (  ) 

XB360WindowManager::~XB360WindowManager (  ) 


Member Function Documentation

virtual void XB360WindowManager::_processCmdLineArgs ( const S32  argc,
const char **  argv 
) [inline, 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 XB360WindowManager::linkWindow ( XB360Window w  )  [private]

Link the specified window into the window list.

void XB360WindowManager::unlinkWindow ( XB360Window w  )  [private]

Remove specified window from the window list.

void XB360WindowManager::_process (  )  [private]

Callback for the process list.

virtual RectI XB360WindowManager::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 void XB360WindowManager::getMonitorRegions ( Vector< RectI > &  regions  )  [inline, virtual]

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

Implements PlatformWindowManager.

virtual Point2I XB360WindowManager::getDesktopResolution (  )  [inline, virtual]

Retrieve the currently set desktop resolution.

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

Implements PlatformWindowManager.

virtual PlatformWindow* XB360WindowManager::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 XB360WindowManager::getWindows ( Vector< PlatformWindow * > &  windows  )  [inline, virtual]

virtual PlatformWindow* XB360WindowManager::getWindowById ( DeviceId  id  )  [inline, virtual]

virtual PlatformWindow* XB360WindowManager::getFirstWindow (  )  [inline, 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* XB360WindowManager::getFocusedWindow (  )  [virtual]

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

Implements PlatformWindowManager.

virtual S32 XB360WindowManager::getDesktopBitDepth (  )  [inline, virtual]

Retrieve the currently set desktop bit depth.

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

Implements PlatformWindowManager.

virtual void XB360WindowManager::lowerCurtain (  )  [inline, virtual]

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

Implements PlatformWindowManager.

virtual void XB360WindowManager::raiseCurtain (  )  [inline, virtual]

See also:
lowerCurtain
This method removes the curtain window.

Implements PlatformWindowManager.


Friends And Related Function Documentation

friend class XB360Window [friend]


Member Data Documentation

Generator for device IDs.

List of allocated windows.