Contains details about a display device. More...
#include <juce_Desktop.h>
Public Attributes | |
double | dpi |
The DPI of the display. More... | |
bool | isMain |
This will be true if this is the user's main screen. More... | |
double | scale |
This is the scale-factor of this display. More... | |
Rectangle< int > | totalArea |
This is the total physical area of this display, including any taskbars, etc. More... | |
Rectangle< int > | userArea |
This is the bounds of the area of this display which isn't covered by OS-dependent objects like the taskbar, menu bar, etc. More... | |
Contains details about a display device.
double Desktop::Displays::Display::dpi |
The DPI of the display.
This is the number of physical pixels per inch. To get the number of logical pixels per inch, divide this by the Display::scale value.
bool Desktop::Displays::Display::isMain |
This will be true if this is the user's main screen.
double Desktop::Displays::Display::scale |
This is the scale-factor of this display.
If you create a component with size 1x1, this scale factor indicates the actual size of the component in terms of physical pixels. For higher-resolution displays, it may be a value greater than 1.0
Referenced by JuceGLView::layerClass, and OpenGLContext::NativeContext::updateWindowPosition().
This is the total physical area of this display, including any taskbars, etc.
This is the bounds of the area of this display which isn't covered by OS-dependent objects like the taskbar, menu bar, etc.