Gamedev Framework (gf)  0.6.0
A C++11 framework for 2D games
Public Member Functions | Static Public Member Functions | List of all members
gf::Monitor Class Reference

A monitor. More...

#include <gf/Monitor.h>

Public Member Functions

 Monitor (const Monitor &)=delete
 Deleted copy constructor. More...
 
Monitoroperator= (const Monitor &)=delete
 Deleted copy assignment. More...
 
 Monitor (Monitor &&other)=default
 Move constructor. More...
 
Monitoroperator= (Monitor &&other)=default
 Move assignement. More...
 
std::string getName () const
 Get the name of the monitor. More...
 
Vector2i getPosition () const
 Get the position of the monitor. More...
 
Vector2u getPhysicalSize () const
 Get the physical size of the monitor. More...
 
std::vector< VideoModegetAvailableVideoModes () const
 Get the available video modes for this monitor. More...
 
VideoMode getCurrentVideoMode () const
 Get the current video mode. More...
 

Static Public Member Functions

static Monitor getPrimaryMonitor ()
 Get the primary monitor. More...
 
static std::vector< MonitorgetAvailableMonitors ()
 Get all the available monitors. More...
 

Detailed Description

A monitor.

Constructor & Destructor Documentation

◆ Monitor() [1/2]

gf::Monitor::Monitor ( const Monitor )
delete

Deleted copy constructor.

◆ Monitor() [2/2]

gf::Monitor::Monitor ( Monitor &&  other)
default

Move constructor.

Member Function Documentation

◆ getAvailableMonitors()

static std::vector<Monitor> gf::Monitor::getAvailableMonitors ( )
static

Get all the available monitors.

◆ getAvailableVideoModes()

std::vector<VideoMode> gf::Monitor::getAvailableVideoModes ( ) const

Get the available video modes for this monitor.

Returns
The video modes for this monitor

◆ getCurrentVideoMode()

VideoMode gf::Monitor::getCurrentVideoMode ( ) const

Get the current video mode.

Returns
The current video mode

◆ getName()

std::string gf::Monitor::getName ( ) const

Get the name of the monitor.

Returns
A string containing the name of the monitor

◆ getPhysicalSize()

Vector2u gf::Monitor::getPhysicalSize ( ) const

Get the physical size of the monitor.

Returns
The physical size of the monitor

◆ getPosition()

Vector2i gf::Monitor::getPosition ( ) const

Get the position of the monitor.

Returns
The position of the monitor

◆ getPrimaryMonitor()

static Monitor gf::Monitor::getPrimaryMonitor ( )
static

Get the primary monitor.

Returns
The primary monitor

◆ operator=() [1/2]

Monitor& gf::Monitor::operator= ( const Monitor )
delete

Deleted copy assignment.

◆ operator=() [2/2]

Monitor& gf::Monitor::operator= ( Monitor &&  other)
default

Move assignement.