MacWindowManager Class Reference

#include <macWindowManager.h>

Inheritance diagram for MacWindowManager:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MacWindowManager ()
 ~MacWindowManager ()
virtual void setParentWindow (void *newParent)
 Set the parent window.
virtual voidgetParentWindow ()
 Get the parent window.
virtual PlatformWindowcreateWindow (GFXDevice *device, const GFXVideoMode &mode)
 Create a new window, appropriate for the specified device and mode.
void _addWindow (MacWindow *window)
void _removeWindow (MacWindow *window)
void _onAppSignal (WindowId wnd, S32 event)
bool onShutdown ()
bool canWindowGainFocus (MacWindow *window)
Desktop Queries
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 S32 getDesktopBitDepth ()
 Retrieve the currently set desktop bit depth.
virtual Point2I getDesktopResolution ()
 Retrieve the currently set desktop resolution.
Window Lookup
virtual S32 getWindowCount ()
 Get the number of Window's in this system.
virtual void getWindows (VectorPtr< PlatformWindow * > &windows)
 Populate a list with references to all the windows created from this manager.
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 ()
 During full-screen toggles we want to suppress ugly transition states, which we do (on Win32) by showing and hiding a full-monitor black window.
virtual void raiseCurtain ()
Command Line Usage
virtual void _processCmdLineArgs (const S32 argc, const char **argv)
 Process command line arguments sent to this window manager to manipulate it's windows.

Private Types

typedef VectorPtr< MacWindow * > WindowList

Private Attributes

WindowList mWindowList
U32 mFadeToken
Delegate< bool(void)> mNotifyShutdownDelegate
bool mIsShuttingDown

Member Typedef Documentation


Constructor & Destructor Documentation

MacWindowManager::MacWindowManager (  ) 

MacWindowManager::~MacWindowManager (  ) 


Member Function Documentation

virtual void MacWindowManager::setParentWindow ( void newParent  )  [inline, virtual]

Set the parent window.

This can be used to render in a child window.

Implements PlatformWindowManager.

virtual void* MacWindowManager::getParentWindow (  )  [inline, virtual]

Get the parent window.

Implements PlatformWindowManager.

virtual PlatformWindow* MacWindowManager::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 RectI MacWindowManager::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 multi-monitor system this is the primary monitor (which Torque should launch on).

Implements PlatformWindowManager.

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

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

Implements PlatformWindowManager.

virtual S32 MacWindowManager::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 MacWindowManager::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 S32 MacWindowManager::getWindowCount (  )  [virtual]

Get the number of Window's in this system.

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

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

Implements PlatformWindowManager.

virtual PlatformWindow* MacWindowManager::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* MacWindowManager::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* MacWindowManager::getFocusedWindow (  )  [virtual]

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

Implements PlatformWindowManager.

virtual void MacWindowManager::lowerCurtain (  )  [virtual]

During full-screen toggles we want to suppress ugly transition states, which we do (on Win32) by showing and hiding a full-monitor black window.

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

Implements PlatformWindowManager.

virtual void MacWindowManager::raiseCurtain (  )  [virtual]

See also:
lowerCurtain
This method removes the curtain window.

Implements PlatformWindowManager.

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

Process command line arguments sent to this window manager to manipulate it's windows.

Implements PlatformWindowManager.

void MacWindowManager::_addWindow ( MacWindow window  ) 

void MacWindowManager::_removeWindow ( MacWindow window  ) 

void MacWindowManager::_onAppSignal ( WindowId  wnd,
S32  event 
)

bool MacWindowManager::onShutdown (  ) 

bool MacWindowManager::canWindowGainFocus ( MacWindow window  ) 


Member Data Documentation