Blender
V3.3
|
#include <GHOST_DisplayManagerSDL.h>
Public Member Functions | |
GHOST_DisplayManagerSDL (GHOST_SystemSDL *system) | |
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 | getCurrentDisplayModeSDL (SDL_DisplayMode &mode) const |
GHOST_TSuccess | setCurrentDisplaySetting (uint8_t display, const GHOST_DisplaySetting &setting) |
![]() | |
GHOST_DisplayManager (void) | |
virtual | ~GHOST_DisplayManager (void) |
virtual GHOST_TSuccess | initialize (void) |
Additional Inherited Members | |
![]() | |
enum | { kMainDisplay = 0 } |
![]() | |
typedef std::vector< GHOST_DisplaySetting > | GHOST_DisplaySettings |
![]() | |
GHOST_TSuccess | findMatch (uint8_t display, const GHOST_DisplaySetting &setting, GHOST_DisplaySetting &match) const |
GHOST_TSuccess | initializeSettings (void) |
![]() | |
bool | m_settingsInitialized |
std::vector< GHOST_DisplaySettings > | m_settings |
Definition at line 22 of file GHOST_DisplayManagerSDL.h.
GHOST_DisplayManagerSDL::GHOST_DisplayManagerSDL | ( | GHOST_SystemSDL * | system | ) |
Definition at line 16 of file GHOST_DisplayManagerSDL.cpp.
GHOST_TSuccess GHOST_DisplayManagerSDL::getCurrentDisplayModeSDL | ( | SDL_DisplayMode & | mode | ) | const |
Definition at line 80 of file GHOST_DisplayManagerSDL.cpp.
References GHOST_kSuccess.
|
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 69 of file GHOST_DisplayManagerSDL.cpp.
References GHOST_kSuccess, and ghost_mode_from_sdl().
|
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 55 of file GHOST_DisplayManagerSDL.cpp.
References GHOST_ASSERT, GHOST_kSuccess, and ghost_mode_from_sdl().
|
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 22 of file GHOST_DisplayManagerSDL.cpp.
References GHOST_kSuccess.
|
virtual |
Returns the number of display settings for this display device.
display | The index of the display to query with 0 <= display < getNumDisplays(). |
numSettings | The number of settings of the display device with this index. |
Reimplemented from GHOST_DisplayManager.
Definition at line 28 of file GHOST_DisplayManagerSDL.cpp.
References GHOST_ASSERT, and GHOST_kSuccess.
|
virtual |
Changes the current setting for this display device. The setting given to this method is matched against the available display settings. The best match is activated (
display | The index of the display to query with 0 <= display < getNumDisplays(). |
setting | The setting of the display device to be matched and activated. |
Reimplemented from GHOST_DisplayManager.
Definition at line 86 of file GHOST_DisplayManagerSDL.cpp.
References GHOST_WindowManager::getActiveWindow(), GHOST_WindowSDL::getSDLWindow(), GHOST_System::getWindowManager(), GHOST_kFailure, GHOST_kSuccess, ghost_mode_to_sdl(), x, GHOST_DisplaySetting::xPixels, y, and GHOST_DisplaySetting::yPixels.