111 const Display* useScaleFactorOfDisplay =
nullptr) const noexcept;
119 const
Display* useScaleFactorOfDisplay =
nullptr) const noexcept;
127 const
Display* useScaleFactorOfDisplay =
nullptr) const noexcept;
135 const
Display* useScaleFactorOfDisplay =
nullptr) const noexcept;
142 template <typename ValueType>
143 Point<ValueType> physicalToLogical (
Point<ValueType> physicalPoint,
144 const
Display* useScaleFactorOfDisplay =
nullptr) const noexcept;
151 template <typename ValueType>
152 Point<ValueType> logicalToPhysical (
Point<ValueType> logicalPoint,
153 const
Display* useScaleFactorOfDisplay =
nullptr) const noexcept;
160 const
Display* getDisplayForRect (
Rectangle<
int> rect,
bool isPhysical = false) const noexcept;
167 const
Display* getDisplayForPoint (
Point<
int> point,
bool isPhysical = false) const noexcept;
172 const
Display* getPrimaryDisplay() const noexcept;
175 RectangleList<
int> getRectangleList (
bool userAreasOnly) const;
178 Rectangle<
int> getTotalBounds (
bool userAreasOnly) const;
187 [[deprecated (
"Use the getDisplayForPoint or getDisplayForRect methods instead "
188 "as they can deal with converting between logical and physical pixels.")]]
193 [[deprecated]]
const Display& findDisplayForRect (
Rectangle<int>,
bool isPhysical =
false) const noexcept;
194 [[deprecated]] const
Display& findDisplayForPoint (
Point<
int>,
bool isPhysical = false) const noexcept;
195 [[deprecated]] const
Display& getMainDisplay() const noexcept;
202 void findDisplays (
float masterScale);
204 void updateToLogical();
Holds a resizable array of primitive or copy-by-value objects.
Specifies a set of gaps to be left around the sides of a rectangle.
Describes and controls aspects of the computer's desktop.
Manages details about connected display devices.
BorderSize< int > safeAreaInsets
Represents the area of this display in logical pixels that is not functional for displaying content.
BorderSize< int > keyboardInsets
Represents the area of this display in logical pixels that is obscured by an onscreen keyboard.
Rectangle< int > userArea
The total area of this display in logical pixels which isn't covered by OS-dependent objects like the...
Rectangle< int > totalArea
The total area of this display in logical pixels including any OS-dependent objects like the taskbar,...
Point< int > topLeftPhysical
The top-left of this display in physical coordinates.
double scale
The scale factor of this display.
std::optional< double > verticalFrequencyHz
The vertical refresh rate of the display if applicable.
double dpi
The DPI of the display.
bool isMain
This will be true if this is the user's main display device.
Represents a connected display device.
A pair of (x, y) coordinates.
Maintains a set of rectangles as a complex region.
Manages a rectangle and allows geometric operations to be performed on it.