Display related functions.
More...
#include <macDisplay.h>
|
static double | getMainDisplayBackingScaleFactor () |
| Returns the backing store pixel scale factor for the display. More...
|
|
static double | getMaxBackingScaleFactor () |
| Returns the maximum backing store pixel scale factor for all displays. More...
|
|
static bool | getMainDisplayDimensions (unsigned int &outWidth, unsigned int &outHeight) |
| Determine dimensions of the main display in pixels. More...
|
|
static bool | getMainDisplayDPI (double &outHorizontalDPI, double &outVerticalDPI) |
| Determine the horizontal and vertical DPI for the main monitor in its current display mode. More...
|
|
static bool | getMainDisplayUsableFrame (unsigned int &outX, unsigned int &outY, unsigned int &outWidth, unsigned int &outHeight) |
| Determine current location and dimensions of the usable screen area (excluding dock and menu) More...
|
|
Display related functions.
Definition at line 25 of file macDisplay.h.
◆ getMainDisplayBackingScaleFactor()
static double macos::Display::getMainDisplayBackingScaleFactor |
( |
| ) |
|
|
static |
Returns the backing store pixel scale factor for the display.
◆ getMainDisplayDimensions()
static bool macos::Display::getMainDisplayDimensions |
( |
unsigned int & |
outWidth, |
|
|
unsigned int & |
outHeight |
|
) |
| |
|
static |
Determine dimensions of the main display in pixels.
◆ getMainDisplayDPI()
static bool macos::Display::getMainDisplayDPI |
( |
double & |
outHorizontalDPI, |
|
|
double & |
outVerticalDPI |
|
) |
| |
|
static |
Determine the horizontal and vertical DPI for the main monitor in its current display mode.
◆ getMainDisplayUsableFrame()
static bool macos::Display::getMainDisplayUsableFrame |
( |
unsigned int & |
outX, |
|
|
unsigned int & |
outY, |
|
|
unsigned int & |
outWidth, |
|
|
unsigned int & |
outHeight |
|
) |
| |
|
static |
Determine current location and dimensions of the usable screen area (excluding dock and menu)
The rectangle defines the portion of the screen in which it is currently safe to draw the application content.
◆ getMaxBackingScaleFactor()
static double macos::Display::getMaxBackingScaleFactor |
( |
| ) |
|
|
static |
Returns the maximum backing store pixel scale factor for all displays.
The documentation for this class was generated from the following file: