Gamedev Framework (gf)  0.2.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 ()
 Get the name of the monitor. More...
 
Vector2i getPosition ()
 Get the position of the monitor. More...
 
Vector2u getPhysicalSize ()
 Get the physical size of the monitor. More...
 
std::vector< VideoModegetAvailableVideoModes ()
 Get the available video modes for this monitor. More...
 
VideoMode getCurrentVideoMode ()
 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

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

Deleted copy constructor.

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

Move constructor.

Member Function Documentation

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

Get all the available monitors.

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

Get the available video modes for this monitor.

Returns
The video modes for this monitor
VideoMode gf::Monitor::getCurrentVideoMode ( )

Get the current video mode.

Returns
The current video mode
std::string gf::Monitor::getName ( )

Get the name of the monitor.

Returns
A string containing the name of the monitor
Vector2u gf::Monitor::getPhysicalSize ( )

Get the physical size of the monitor.

Returns
The physical size of the monitor
Vector2i gf::Monitor::getPosition ( )

Get the position of the monitor.

Returns
The position of the monitor
static Monitor gf::Monitor::getPrimaryMonitor ( )
static

Get the primary monitor.

Returns
The primary monitor
Monitor& gf::Monitor::operator= ( const Monitor )
delete

Deleted copy assignment.

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

Move assignement.