JUCE
|
Manages details about connected display devices. More...
#include <juce_Displays.h>
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. | |
Rectangle< int > | logicalToPhysical (Rectangle< int >, const Display *useScaleFactorOfDisplay=nullptr) const noexcept |
Converts a Rectangle from logical to physical pixels. | |
template<typename ValueType> | |
Point< ValueType > | physicalToLogical (Point< ValueType >, const Display *useScaleFactorOfDisplay=nullptr) const noexcept |
Converts a Point from physical to logical pixels. | |
template<typename ValueType> | |
Point< ValueType > | logicalToPhysical (Point< ValueType >, const Display *useScaleFactorOfDisplay=nullptr) const noexcept |
Converts a Point from logical to physical pixels. | |
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). | |
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). | |
const Display & | getMainDisplay () const noexcept |
Returns the Display object representing the display acting as the user's main screen. | |
RectangleList< int > | getRectangleList (bool userAreasOnly) const |
Returns a RectangleList made up of all the displays in LOGICAL pixels. | |
Rectangle< int > | getTotalBounds (bool userAreasOnly) const |
Returns the smallest bounding box which contains all the displays in LOGICAL pixels. | |
Public Attributes | |
Array< Display > | displays |
An Array containing the Display objects for all of the connected displays. | |
Manages details about connected display devices.
|
noexcept |
Converts a Rectangle from physical to logical pixels.
If useScaleFactorOfDisplay is not null then its scale factor will be used for the conversion regardless of the display that the Rectangle to be converted is on.
Referenced by physicalToLogical().
|
noexcept |
Converts a Rectangle from logical to physical pixels.
If useScaleFactorOfDisplay is not null then its scale factor will be used for the conversion regardless of the display that the Rectangle to be converted is on.
References logicalToPhysical().
Referenced by logicalToPhysical(), and logicalToPhysical().
|
noexcept |
Converts a Point from physical to logical pixels.
References physicalToLogical(), and Point.
|
noexcept |
Converts a Point from logical to physical pixels.
References logicalToPhysical(), and Point.
|
noexcept |
Returns the Display object representing the display containing a given Rectangle (either in logical or physical pixels).
If the Rectangle lies outside all the displays then the nearest one will be returned.
References findDisplayForRect().
Referenced by findDisplayForRect().
|
noexcept |
Returns the Display object representing the display containing a given Point (either in logical or physical pixels).
If the Point lies outside all the displays then the nearest one will be returned.
References findDisplayForPoint(), and Point.
Referenced by findDisplayForPoint().
|
noexcept |
Returns the Display object representing the display acting as the user's main screen.
References getMainDisplay().
Referenced by getMainDisplay().
RectangleList< int > Displays::getRectangleList | ( | bool | userAreasOnly | ) | const |
Returns a RectangleList made up of all the displays in LOGICAL pixels.
References getRectangleList().
Referenced by getRectangleList().
Rectangle< int > Displays::getTotalBounds | ( | bool | userAreasOnly | ) | const |
Returns the smallest bounding box which contains all the displays in LOGICAL pixels.
References getTotalBounds().
Referenced by getTotalBounds().