Returns the system position (relative to the system's primary display's upper-left corner) of a Display-relative
displayRelativeCoordinate
. The results are suitable for use with
app::Window
's position functions.
int
getBitsPerPixel () const
Returns the bits per pixel for the display. Typically 24 bits.
float
getContentScale () const
Returns the factor which multiplies points to pixels. 2.0f for high-density (Retina) displays; 1.0f for others.
bool
contains (const ivec2 &pt) const
Returns whether the
Display
's coordinates contain
pt
.
std::string
getName () const
Returns the display's name or an empty string if unavailable.
Returns the
Display
which contains a given point, measured relative to the upper-left corner of the primary display. Returns a NULL DisplayRef on failure.