Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
quori_face::Monitor Class Reference

#include <Monitor.hpp>

Public Types

typedef std::shared_ptr< const MonitorConstPtr
 
typedef std::shared_ptr< MonitorPtr
 

Public Member Functions

GLFWmonitor * getHandle () const
 
std::string getName () const
 
bool isPrimary () const
 
 ~Monitor ()
 

Static Public Member Functions

static std::vector< Monitor::PtrgetMonitors ()
 
static Monitor::Ptr getPrimaryMonitor ()
 

Private Member Functions

 Monitor (GLFWmonitor *const handle)
 

Private Attributes

GLFWmonitor * handle_
 

Detailed Description

Represents a display connected to the computer

Definition at line 16 of file Monitor.hpp.

Member Typedef Documentation

◆ ConstPtr

typedef std::shared_ptr<const Monitor> quori_face::Monitor::ConstPtr

Definition at line 20 of file Monitor.hpp.

◆ Ptr

typedef std::shared_ptr<Monitor> quori_face::Monitor::Ptr

Definition at line 19 of file Monitor.hpp.

Constructor & Destructor Documentation

◆ ~Monitor()

Monitor::~Monitor ( )

Definition at line 43 of file Monitor.cpp.

◆ Monitor()

Monitor::Monitor ( GLFWmonitor *const  handle)
private

Definition at line 47 of file Monitor.cpp.

Member Function Documentation

◆ getHandle()

GLFWmonitor * Monitor::getHandle ( ) const
Returns
The underlying GLFW window pointer

Definition at line 38 of file Monitor.cpp.

◆ getMonitors()

std::vector< Monitor::Ptr > Monitor::getMonitors ( )
static
Returns
A list of the monitors connected to the computer

Definition at line 9 of file Monitor.cpp.

◆ getName()

std::string Monitor::getName ( ) const
Returns
The OS-defined name of the monitor

Definition at line 33 of file Monitor.cpp.

◆ getPrimaryMonitor()

Monitor::Ptr Monitor::getPrimaryMonitor ( )
static
Returns
The primary monitor connected to the computer

Definition at line 23 of file Monitor.cpp.

◆ isPrimary()

bool Monitor::isPrimary ( ) const
Returns
true if the monitor is the primary one, false otherwise

Definition at line 28 of file Monitor.cpp.

Member Data Documentation

◆ handle_

GLFWmonitor* quori_face::Monitor::handle_
private

Definition at line 57 of file Monitor.hpp.


The documentation for this class was generated from the following files:


quori_face
Author(s):
autogenerated on Wed Mar 2 2022 00:53:20