|
Blender V4.3
|
#include <GHOST_DisplayManagerCocoa.hh>
Inherits GHOST_DisplayManager.
Public Member Functions | |
| GHOST_DisplayManagerCocoa ()=default | |
| GHOST_TSuccess | getNumDisplays (uint8_t &numDisplays) const override |
| GHOST_TSuccess | getNumDisplaySettings (uint8_t display, int32_t &numSettings) const override |
| GHOST_TSuccess | getDisplaySetting (uint8_t display, int32_t index, GHOST_DisplaySetting &setting) const override |
| GHOST_TSuccess | getCurrentDisplaySetting (uint8_t display, GHOST_DisplaySetting &setting) const override |
| GHOST_TSuccess | setCurrentDisplaySetting (uint8_t display, const GHOST_DisplaySetting &setting) override |
Public Member Functions inherited from GHOST_DisplayManager | |
| GHOST_DisplayManager () | |
| virtual | ~GHOST_DisplayManager () |
| virtual GHOST_TSuccess | initialize () |
Additional Inherited Members | |
Public Types inherited from GHOST_DisplayManager | |
| enum | { kMainDisplay = 0 } |
Protected Types inherited from GHOST_DisplayManager | |
| typedef std::vector< GHOST_DisplaySetting > | GHOST_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 () |
Protected Attributes inherited from GHOST_DisplayManager | |
| bool | m_settingsInitialized |
| std::vector< GHOST_DisplaySettings > | m_settings |
Manages system displays (Mac OSX/Cocoa implementation).
Definition at line 22 of file GHOST_DisplayManagerCocoa.hh.
|
default |
Constructor.
|
overridevirtual |
Returns the current setting for this display device.
| display | The index of the display to query with 0 <= display < getNumDisplays(). |
| setting | The current setting of the display device with this index. |
Reimplemented from GHOST_DisplayManager.
Definition at line 69 of file GHOST_DisplayManagerCocoa.mm.
References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_ASSERT, GHOST_kFailure, GHOST_kSuccess, GHOST_DisplayManager::kMainDisplay, printf, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.
|
overridevirtual |
Returns the current setting for this display device.
| display | The index of the display to query with 0 <= display < getNumDisplays(). |
| index | The setting index to be returned. |
| setting | The setting of the display device with this index. |
Reimplemented from GHOST_DisplayManager.
Definition at line 30 of file GHOST_DisplayManagerCocoa.mm.
References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_kFailure, GHOST_kSuccess, GHOST_DisplayManager::kMainDisplay, printf, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.
|
overridevirtual |
Returns the number of display devices on this system.
| numDisplays | The number of displays on this system. |
Reimplemented from GHOST_DisplayManager.
Definition at line 13 of file GHOST_DisplayManagerCocoa.mm.
References count, and GHOST_kSuccess.
|
overridevirtual |
Returns the number of display settings for this display device.
| display | The index of the display to query with 0 <= display < getNumDisplays(). |
| numSetting | The number of settings of the display device with this index. |
Reimplemented from GHOST_DisplayManager.
Definition at line 22 of file GHOST_DisplayManagerCocoa.mm.
References GHOST_kSuccess.
|
overridevirtual |
Changes the current setting for this display device.
| display | The index of the display to query with 0 <= display < getNumDisplays(). |
| setting | The current setting of the display device with this index. |
Reimplemented from GHOST_DisplayManager.
Definition at line 110 of file GHOST_DisplayManagerCocoa.mm.
References GHOST_ASSERT, GHOST_kSuccess, GHOST_DisplayManager::kMainDisplay, and printf.