JUCE
|
Manages details about connected display devices. More...
Classes | |
struct | Display |
Represents a connected display device. More... | |
Public Member Functions | |
Rectangle< int > | physicalToLogical (Rectangle< int >, const Display *useScaleFactorOfDisplay=nullptr) const noexcept |
Converts a Rectangle from physical to logical pixels. More... | |
Rectangle< int > | logicalToPhysical (Rectangle< int >, const Display *useScaleFactorOfDisplay=nullptr) const noexcept |
Converts a Rectangle from logical to physical pixels. More... | |
template<typename ValueType > | |
Point< ValueType > | physicalToLogical (Point< ValueType >, const Display *useScaleFactorOfDisplay=nullptr) const noexcept |
Converts a Point from physical to logical pixels. More... | |
template<typename ValueType > | |
Point< ValueType > | logicalToPhysical (Point< ValueType >, const Display *useScaleFactorOfDisplay=nullptr) const noexcept |
Converts a Point from logical to physical pixels. More... | |
const Display & | findDisplayForRect (Rectangle< int >, bool isPhysical=false) const noexcept |
Returns the Display object representing the display containing a given Rectangle (either in logical or physical pixels). More... | |
const Display & | findDisplayForPoint (Point< int >, bool isPhysical=false) const noexcept |
Returns the Display object representing the display containing a given Point (either in logical or physical pixels). More... | |
const Display & | getMainDisplay () const noexcept |
Returns the Display object representing the display acting as the user's main screen. More... | |
RectangleList< int > | getRectangleList (bool userAreasOnly) const |
Returns a RectangleList made up of all the displays in LOGICAL pixels. More... | |
Rectangle< int > | getTotalBounds (bool userAreasOnly) const |
Returns the smallest bounding box which contains all the displays in LOGICAL pixels. More... | |
Public Attributes | |
Array< Display > | displays |
An Array containing the Display objects for all of the connected displays. More... | |
Manages details about connected display devices.
|
noexcept |
Converts a Point from physical to logical pixels.
|
noexcept |
Converts a Point from logical to physical pixels.
|
noexcept |
Returns the Display object representing the display acting as the user's main screen.
RectangleList<int> Displays::getRectangleList | ( | bool | userAreasOnly | ) | const |
Returns a RectangleList made up of all the displays in LOGICAL pixels.
Returns the smallest bounding box which contains all the displays in LOGICAL pixels.