MeVisLab Toolbox Reference
macDisplay.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef MAC_DISPLAY_H
14 #define MAC_DISPLAY_H
15 
17 
18 #if defined(__APPLE__)
19 
21 
22 namespace macos {
23 
26  {
27  public:
28 
31 
33  static double getMaxBackingScaleFactor();
34 
36  static bool getMainDisplayDimensions(unsigned int &outWidth, unsigned int &outHeight);
37 
39  static bool getMainDisplayDPI(double &outHorizontalDPI, double &outVerticalDPI);
40 
42 
44  static bool getMainDisplayUsableFrame(unsigned int &outX, unsigned int &outY, unsigned int &outWidth, unsigned int &outHeight);
45  };
46 
47 }
48 
49 #endif // __APPLE__
50 #endif // __macDisplay_H
Display related functions.
Definition: macDisplay.h:26
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)
static double getMainDisplayBackingScaleFactor()
Returns the backing store pixel scale factor for the display.
static bool getMainDisplayDPI(double &outHorizontalDPI, double &outVerticalDPI)
Determine the horizontal and vertical DPI for the main monitor in its current display mode.
static bool getMainDisplayDimensions(unsigned int &outWidth, unsigned int &outHeight)
Determine dimensions of the main display in pixels.
static double getMaxBackingScaleFactor()
Returns the maximum backing store pixel scale factor for all displays.
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.
AppleScript support.