|
Blender
V2.93
|
#include <GHOST_DisplayManagerCocoa.h>
Inherits GHOST_DisplayManager.
Public Member Functions | |
| GHOST_DisplayManagerCocoa (void) | |
| 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) |
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_DisplaySetting > | GHOST_DisplaySettings |
Protected Member Functions inherited from GHOST_DisplayManager | |
| GHOST_TSuccess | findMatch (GHOST_TUns8 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_DisplaySettings > | m_settings |
Manages system displays (Mac OSX/Cocoa implementation).
Definition at line 37 of file GHOST_DisplayManagerCocoa.h.
| GHOST_DisplayManagerCocoa::GHOST_DisplayManagerCocoa | ( | void | ) |
Constructor.
Definition at line 28 of file GHOST_DisplayManagerCocoa.mm.
|
virtual |
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 88 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.
|
virtual |
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 50 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.
|
virtual |
Returns the number of display devices on this system.
| numDisplays | The number of displays on this system. |
Reimplemented from GHOST_DisplayManager.
Definition at line 32 of file GHOST_DisplayManagerCocoa.mm.
References count, GHOST_kSuccess, init, and blender::compositor::pool.
|
virtual |
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 42 of file GHOST_DisplayManagerCocoa.mm.
References GHOST_kSuccess.
|
virtual |
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 129 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.