Blender V2.61 - r43446
Public Member Functions

GHOST_DisplayManagerSDL Class Reference

#include <GHOST_DisplayManagerSDL.h>

Inheritance diagram for GHOST_DisplayManagerSDL:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GHOST_DisplayManagerSDL (GHOST_SystemSDL *system)
GHOST_TSuccess getNumDisplays (GHOST_TUns8 &numDisplays) const
GHOST_TSuccess getNumDisplaySettings (GHOST_TUns8 display, GHOST_TInt32 &numSettings) const
GHOST_TSuccess getDisplaySetting (GHOST_TUns8 display, GHOST_TInt32 index, GHOST_DisplaySetting &setting) const
GHOST_TSuccess getCurrentDisplaySetting (GHOST_TUns8 display, GHOST_DisplaySetting &setting) const
GHOST_TSuccess setCurrentDisplaySetting (GHOST_TUns8 display, const GHOST_DisplaySetting &setting)

Detailed Description

Definition at line 43 of file GHOST_DisplayManagerSDL.h.


Constructor & Destructor Documentation

GHOST_DisplayManagerSDL::GHOST_DisplayManagerSDL ( GHOST_SystemSDL system)

Definition at line 35 of file GHOST_DisplayManagerSDL.cpp.


Member Function Documentation

GHOST_TSuccess GHOST_DisplayManagerSDL::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 113 of file GHOST_DisplayManagerSDL.cpp.

References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_kSuccess, NULL, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.

GHOST_TSuccess GHOST_DisplayManagerSDL::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 72 of file GHOST_DisplayManagerSDL.cpp.

References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_ASSERT, GHOST_kFailure, GHOST_kSuccess, i, NULL, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.

GHOST_TSuccess GHOST_DisplayManagerSDL::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 44 of file GHOST_DisplayManagerSDL.cpp.

References GHOST_kSuccess.

GHOST_TSuccess GHOST_DisplayManagerSDL::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().
numSettingsThe number of settings of the display device with this index.
Returns:
Indication of success.

Reimplemented from GHOST_DisplayManager.

Definition at line 51 of file GHOST_DisplayManagerSDL.cpp.

References GHOST_ASSERT, GHOST_kFailure, GHOST_kSuccess, i, and NULL.

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

Changes the current setting for this display device. The setting given to this method is matched againts the available diplay settings. The best match is activated (

See also:
findMatch()).
Parameters:
displayThe index of the display to query with 0 <= display < getNumDisplays().
settingThe setting of the display device to be matched and activated.
Returns:
Indication of success.

Reimplemented from GHOST_DisplayManager.

Definition at line 145 of file GHOST_DisplayManagerSDL.cpp.

References GHOST_DisplaySetting::bpp, GHOST_kFailure, GHOST_kSuccess, i, NULL, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.


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