Blender  V3.3
Public Member Functions | List of all members
GHOST_DisplayManagerCocoa Class Reference

#include <GHOST_DisplayManagerCocoa.h>

Inheritance diagram for GHOST_DisplayManagerCocoa:
GHOST_DisplayManager

Public Member Functions

 GHOST_DisplayManagerCocoa (void)
 
GHOST_TSuccess getNumDisplays (uint8_t &numDisplays) const
 
GHOST_TSuccess getNumDisplaySettings (uint8_t display, int32_t &numSettings) const
 
GHOST_TSuccess getDisplaySetting (uint8_t display, int32_t index, GHOST_DisplaySetting &setting) const
 
GHOST_TSuccess getCurrentDisplaySetting (uint8_t display, GHOST_DisplaySetting &setting) const
 
GHOST_TSuccess setCurrentDisplaySetting (uint8_t display, const GHOST_DisplaySetting &setting)
 
- Public Member Functions inherited from GHOST_DisplayManager
 GHOST_DisplayManager (void)
 
virtual ~GHOST_DisplayManager (void)
 
virtual GHOST_TSuccess initialize (void)
 

Additional Inherited Members

- Public Types inherited from GHOST_DisplayManager
enum  { kMainDisplay = 0 }
 
- Protected Types inherited from GHOST_DisplayManager
typedef std::vector< GHOST_DisplaySettingGHOST_DisplaySettings
 
- Protected Member Functions inherited from GHOST_DisplayManager
GHOST_TSuccess findMatch (uint8_t display, const GHOST_DisplaySetting &setting, GHOST_DisplaySetting &match) const
 
GHOST_TSuccess initializeSettings (void)
 
- Protected Attributes inherited from GHOST_DisplayManager
bool m_settingsInitialized
 
std::vector< GHOST_DisplaySettingsm_settings
 

Detailed Description

Manages system displays (Mac OSX/Cocoa implementation).

See also
GHOST_DisplayManager

Definition at line 21 of file GHOST_DisplayManagerCocoa.h.

Constructor & Destructor Documentation

◆ GHOST_DisplayManagerCocoa()

GHOST_DisplayManagerCocoa::GHOST_DisplayManagerCocoa ( void  )

Constructor.

Definition at line 11 of file GHOST_DisplayManagerCocoa.mm.

Member Function Documentation

◆ getCurrentDisplaySetting()

GHOST_TSuccess GHOST_DisplayManagerCocoa::getCurrentDisplaySetting ( uint8_t  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 71 of file GHOST_DisplayManagerCocoa.mm.

References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_ASSERT, GHOST_kFailure, GHOST_kSuccess, init, GHOST_DisplayManager::kMainDisplay, blender::compositor::pool, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.

◆ getDisplaySetting()

GHOST_TSuccess GHOST_DisplayManagerCocoa::getDisplaySetting ( uint8_t  display,
int32_t  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 33 of file GHOST_DisplayManagerCocoa.mm.

References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_kFailure, GHOST_kSuccess, init, GHOST_DisplayManager::kMainDisplay, blender::compositor::pool, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.

◆ getNumDisplays()

GHOST_TSuccess GHOST_DisplayManagerCocoa::getNumDisplays ( uint8_t 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 15 of file GHOST_DisplayManagerCocoa.mm.

References count, GHOST_kSuccess, init, and blender::compositor::pool.

◆ getNumDisplaySettings()

GHOST_TSuccess GHOST_DisplayManagerCocoa::getNumDisplaySettings ( uint8_t  display,
int32_t 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().
numSettingThe number of settings of the display device with this index.
Returns
Indication of success.

Reimplemented from GHOST_DisplayManager.

Definition at line 25 of file GHOST_DisplayManagerCocoa.mm.

References GHOST_kSuccess.

◆ setCurrentDisplaySetting()

GHOST_TSuccess GHOST_DisplayManagerCocoa::setCurrentDisplaySetting ( uint8_t  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 112 of file GHOST_DisplayManagerCocoa.mm.

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


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