|
Cogs.Core
|
Helper class for enumerating available displays on the host computer. More...
#include <Monitor.h>
Public Member Functions | |
| Monitor (const glm::ivec2 &position, const glm::ivec2 &size) | |
| Monitor (const Monitor &)=default | |
| Monitor (Monitor &&)=default | |
| 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.
*============================================================================================
| Cogs::Monitor::Monitor | ( | const glm::ivec2 & | position, |
| const glm::ivec2 & | size | ||
| ) |
Definition at line 5 of file Monitor.cpp.
|
static |
Definition at line 16 of file Monitor.Linux.cpp.
|
static |
Definition at line 21 of file Monitor.cpp.
|
static |
Definition at line 30 of file Monitor.cpp.
|
static |
Definition at line 41 of file Monitor.cpp.
|
static |
Definition at line 12 of file Monitor.cpp.
|
static |
Definition at line 8 of file Monitor.cpp.
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |