JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::Displays::Display Struct Reference

Represents a connected display device. More...

#include <juce_Displays.h>

Collaboration diagram for juce::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 display device. More...
 
double scale
 The scale factor of this display. More...
 
Point< inttopLeftPhysical
 The top-left of this display in physical coordinates. More...
 
Rectangle< inttotalArea
 The total area of this display in logical pixels including any OS-dependent objects like the taskbar, menu bar, etc. More...
 
Rectangle< intuserArea
 The total area of this display in logical pixels which isn't covered by OS-dependent objects like the taskbar, menu bar, etc. More...
 

Detailed Description

Represents a connected display device.

Member Data Documentation

◆ dpi

double juce::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 juce::Displays::Display::isMain

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

◆ scale

double juce::Displays::Display::scale

The scale factor of this display.

For higher-resolution displays, or displays with a user-defined scale factor set, this may be a value other than 1.0.

This value is used to convert between physical and logical pixels. For example, a Component with size 10x10 will use 20x20 physical pixels on a display with a scale factor of 2.0.

Referenced by juce::OpenGLContext::NativeContext::getWindowScaleFactor(), and juce::OpenGLContext::NativeContext::updateWindowPosition().

◆ topLeftPhysical

Point<int> juce::Displays::Display::topLeftPhysical

The top-left of this display in physical coordinates.

◆ totalArea

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

The total area of this display in logical pixels including any OS-dependent objects like the taskbar, menu bar, etc.

◆ userArea

Rectangle<int> juce::Displays::Display::userArea

The total area of this display in logical pixels 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: