Blender V2.61 - r43446
Public Member Functions

GHOST_DisplayManagerCocoa Class Reference

#include <GHOST_DisplayManagerCocoa.h>

Inheritance diagram for GHOST_DisplayManagerCocoa:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GHOST_DisplayManagerCocoa (void)
virtual GHOST_TSuccess getNumDisplays (GHOST_TUns8 &numDisplays) const
virtual GHOST_TSuccess getNumDisplaySettings (GHOST_TUns8 display, GHOST_TInt32 &numSettings) const
virtual GHOST_TSuccess getDisplaySetting (GHOST_TUns8 display, GHOST_TInt32 index, GHOST_DisplaySetting &setting) const
virtual GHOST_TSuccess getCurrentDisplaySetting (GHOST_TUns8 display, GHOST_DisplaySetting &setting) const
virtual GHOST_TSuccess setCurrentDisplaySetting (GHOST_TUns8 display, const GHOST_DisplaySetting &setting)

Detailed Description

Manages system displays (Mac OSX/Cocoa implementation).

See also:
GHOST_DisplayManager
Author:
Maarten Gribnau
Date:
September 21, 2001

Definition at line 48 of file GHOST_DisplayManagerCocoa.h.


Constructor & Destructor Documentation

GHOST_DisplayManagerCocoa::GHOST_DisplayManagerCocoa ( void  )

Constructor.

Definition at line 37 of file GHOST_DisplayManagerCocoa.mm.


Member Function Documentation

GHOST_TSuccess GHOST_DisplayManagerCocoa::getCurrentDisplaySetting ( GHOST_TUns8  display,
GHOST_DisplaySetting setting 
) const [virtual]

Returns the current setting for this display device.

Parameters:
displayThe index of the display to query with 0 <= display < getNumDisplays().
settingThe current setting of the display device with this index.
Returns:
Indication of success.

Reimplemented from GHOST_DisplayManager.

Definition at line 99 of file GHOST_DisplayManagerCocoa.mm.

References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_ASSERT, GHOST_kFailure, GHOST_kSuccess, GHOST_DisplayManager::kMainDisplay, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.

GHOST_TSuccess GHOST_DisplayManagerCocoa::getDisplaySetting ( GHOST_TUns8  display,
GHOST_TInt32  index,
GHOST_DisplaySetting setting 
) const [virtual]

Returns the current setting for this display device.

Parameters:
displayThe index of the display to query with 0 <= display < getNumDisplays().
indexThe setting index to be returned.
settingThe setting of the display device with this index.
Returns:
Indication of success.

Reimplemented from GHOST_DisplayManager.

Definition at line 63 of file GHOST_DisplayManagerCocoa.mm.

References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_ASSERT, GHOST_kFailure, GHOST_kSuccess, GHOST_DisplayManager::kMainDisplay, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.

GHOST_TSuccess GHOST_DisplayManagerCocoa::getNumDisplays ( GHOST_TUns8 numDisplays) const [virtual]

Returns the number of display devices on this system.

Parameters:
numDisplaysThe number of displays on this system.
Returns:
Indication of success.

Reimplemented from GHOST_DisplayManager.

Definition at line 42 of file GHOST_DisplayManagerCocoa.mm.

References GHOST_kSuccess.

GHOST_TSuccess GHOST_DisplayManagerCocoa::getNumDisplaySettings ( GHOST_TUns8  display,
GHOST_TInt32 numSettings 
) const [virtual]

Returns the number of display settings for this display device.

Parameters:
displayThe index of the display to query with 0 <= display < getNumDisplays().
settingThe number of settings of the display device with this index.
Returns:
Indication of success.

Reimplemented from GHOST_DisplayManager.

Definition at line 53 of file GHOST_DisplayManagerCocoa.mm.

References GHOST_ASSERT, GHOST_kSuccess, and GHOST_DisplayManager::kMainDisplay.

GHOST_TSuccess GHOST_DisplayManagerCocoa::setCurrentDisplaySetting ( GHOST_TUns8  display,
const GHOST_DisplaySetting setting 
) [virtual]

Changes the current setting for this display device.

Parameters:
displayThe index of the display to query with 0 <= display < getNumDisplays().
settingThe current setting of the display device with this index.
Returns:
Indication of success.

Reimplemented from GHOST_DisplayManager.

Definition at line 134 of file GHOST_DisplayManagerCocoa.mm.

References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_ASSERT, GHOST_kSuccess, GHOST_DisplayManager::kMainDisplay, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.


The documentation for this class was generated from the following files: