Blender  V2.93
Public Member Functions | List of all members
GHOST_DisplayManagerX11 Class Reference

#include <GHOST_DisplayManagerX11.h>

Inherits GHOST_DisplayManager.

Public Member Functions

 GHOST_DisplayManagerX11 (GHOST_SystemX11 *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)
 
- 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 (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_DisplaySettingsm_settings
 

Detailed Description

Manages system displays (X11 implementation).

Definition at line 34 of file GHOST_DisplayManagerX11.h.

Constructor & Destructor Documentation

◆ GHOST_DisplayManagerX11()

GHOST_DisplayManagerX11::GHOST_DisplayManagerX11 ( GHOST_SystemX11 system)

Constructor.

Definition at line 37 of file GHOST_DisplayManagerX11.cpp.

Member Function Documentation

◆ getCurrentDisplaySetting()

GHOST_TSuccess GHOST_DisplayManagerX11::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 142 of file GHOST_DisplayManagerX11.cpp.

References getDisplaySetting().

◆ getDisplaySetting()

GHOST_TSuccess GHOST_DisplayManagerX11::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 91 of file GHOST_DisplayManagerX11.cpp.

References GHOST_DisplaySetting::bpp, GHOST_DisplaySetting::frequency, GHOST_SystemX11::getXDisplay(), GHOST_ASSERT, GHOST_kFailure, GHOST_kSuccess, NULL, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.

Referenced by getCurrentDisplaySetting().

◆ getNumDisplays()

GHOST_TSuccess GHOST_DisplayManagerX11::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 43 of file GHOST_DisplayManagerX11.cpp.

References GHOST_SystemX11::getNumDisplays(), and GHOST_kSuccess.

◆ getNumDisplaySettings()

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

Reimplemented from GHOST_DisplayManager.

Definition at line 49 of file GHOST_DisplayManagerX11.cpp.

References GHOST_SystemX11::getXDisplay(), GHOST_ASSERT, GHOST_kFailure, GHOST_kSuccess, and NULL.

◆ setCurrentDisplaySetting()

GHOST_TSuccess GHOST_DisplayManagerX11::setCurrentDisplaySetting ( GHOST_TUns8  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 151 of file GHOST_DisplayManagerX11.cpp.

References abs(), GHOST_DisplaySetting::frequency, GHOST_SystemX11::getXDisplay(), GHOST_kFailure, GHOST_kSuccess, NULL, GHOST_DisplaySetting::xPixels, and GHOST_DisplaySetting::yPixels.


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