|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Go to the source code of this file.
Classes | |
| class | juce::Displays |
| Manages details about connected display devices. More... | |
| struct | juce::Displays::Display |
| Represents a connected display device. More... | |
Namespaces | |
| namespace | juce |
| JUCE Namespace. | |
| struct juce::Displays::Display |
Represents a connected display device.
Definition at line 43 of file juce_Displays.h.
| Class Members | ||
|---|---|---|
| double | 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 | isMain | This will be true if this is the user's main display device. |
| BorderSize< int > | keyboardInsets |
Represents the area of this display in logical pixels that is obscured by an onscreen keyboard. This is currently only supported on iOS, and on Android 11+. This will only return the bounds of the keyboard when it is in 'docked' mode. If the keyboard is floating (e.g. on an iPad using the split keyboard mode), no insets will be reported. |
| BorderSize< int > | safeAreaInsets |
Represents the area of this display in logical pixels that is not functional for displaying content. On mobile devices this may be the area covered by display cutouts and notches, where you still want to draw a background but should not position important content. |
| double | 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. |
| Point< int > | topLeftPhysical | The top-left of this display in physical coordinates. |
| Rectangle< int > | totalArea | The total area of this display in logical pixels including any OS-dependent objects like the taskbar, menu bar, etc. |
| Rectangle< int > | userArea | The total area of this display in logical pixels which isn't covered by OS-dependent objects like the taskbar, menu bar, etc. |
| optional< double > | verticalFrequencyHz |
The vertical refresh rate of the display if applicable. Currently this is only used on Linux for display rate repainting. |