Cogs.Foundation
|
Helper class for enumerating available displays on the host computer. More...
#include <Monitor.h>
Public Member Functions | |
void * | getIdentifier () const |
const std::string & | getName () const |
const glm::ivec2 & | getPosition () const |
const glm::ivec2 & | getSize () const |
glm::ivec2 | getCentre () const |
Static Public Member Functions | |
static void | enumerate () |
static size_t | getCount () |
static const Monitor & | get (size_t idx) |
static const Monitor * | findByName (const std::string &name) |
static const Monitor * | findFromPoint (const glm::ivec2 &point) |
static const Monitor * | findFromRect (const glm::ivec2 &tl, const glm::ivec2 &br) |
Private Types | |
using | List = std::vector< Monitor > |
Private Attributes | |
void * | identifier = nullptr |
Platform specific identifier. | |
std::string | name |
User-friendly name for this monitor. | |
glm::ivec2 | position |
Position of this monitor in desktop coordinates. | |
glm::ivec2 | size |
Size of this monitor in desktop coordinates. | |
bool | primary = false |
This is the user's primary monitor. | |
Static Private Attributes | |
static List | monitors |
Helper class for enumerating available displays on the host computer.
*============================================================================================
|
private |
|
static |
|
static |
|
static |
References position.
|
static |
|
static |
|
inline |
|
static |
References monitors.
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Platform specific identifier.
Referenced by enumerate().
|
staticprivate |
Referenced by enumerate(), and getCount().
|
private |
User-friendly name for this monitor.
Referenced by enumerate().
|
private |
Position of this monitor in desktop coordinates.
Referenced by enumerate(), findFromPoint(), and findFromRect().
|
private |
This is the user's primary monitor.
Referenced by enumerate().
|
private |
Size of this monitor in desktop coordinates.
Referenced by enumerate(), and findFromRect().