JUCE  v5.1.1-3-g1a0b28c73
JUCE API
Desktop::Displays::Display Struct Reference

Contains details about a display device. More...

#include <juce_Desktop.h>

Collaboration diagram for Desktop::Displays::Display:

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< inttotalArea
 This is the total physical area of this display, including any taskbars, etc. More...
 
Rectangle< intuserArea
 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...
 

Detailed Description

Contains details about a display device.

Member Data Documentation

◆ dpi

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.

◆ isMain

bool Desktop::Displays::Display::isMain

This will be true if this is the user's main screen.

◆ scale

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().

◆ totalArea

Rectangle<int> Desktop::Displays::Display::totalArea

This is the total physical area of this display, including any taskbars, etc.

◆ userArea

Rectangle<int> Desktop::Displays::Display::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.


The documentation for this struct was generated from the following file: