AllegroPlus
 All Classes Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Allegro::MonitorInfoPlus Class Reference

Wrapper for ALLEGRO_MONITOR_INFO. More...

#include <MonitorInfoPlus.h>

Public Member Functions

 MonitorInfoPlus (int adapter)
 Constructor.

Static Public Member Functions

static int GetNewDisplayAdapter ()
 Gets the new display adapter.
static void SetNewDisplayAdapter (int adapter)
 Sets a new display adapter.
static void ResetNewDisplayAdapter ()
 Resets the new display adapter, Same as SetNewDisplayAdapter(ALLEGRO_DEFAULT_DISPLAY_ADAPTER).
static int GetNumberOfVideoAdapters ()
 Gets the number of video adapters.
static std::vector
< MonitorInfoPlus
GetAllMonitorInfo ()
 Gets all monitor information.

Public Attributes

int x1
 Left x of the monitor.
int y1
 Top y of the monitor.
int x2
 Right x of the monitor.
int y2
 Bottom y of the monitor.
int width
 The width of the monitor.
int height
 The height of the monitor.

Detailed Description

Wrapper for ALLEGRO_MONITOR_INFO.

Constructor & Destructor Documentation

Allegro::MonitorInfoPlus::MonitorInfoPlus ( int  adapter)

Constructor.

Parameters
indexThe adapter

Member Function Documentation

std::vector< MonitorInfoPlus > Allegro::MonitorInfoPlus::GetAllMonitorInfo ( void  )
static

Gets all monitor information.

Returns
all monitor information.
int Allegro::MonitorInfoPlus::GetNewDisplayAdapter ( void  )
static

Gets the new display adapter.

Returns
The new display adapter.
int Allegro::MonitorInfoPlus::GetNumberOfVideoAdapters ( void  )
static

Gets the number of video adapters.

Returns
The number of video adapters.
void Allegro::MonitorInfoPlus::ResetNewDisplayAdapter ( void  )
static

Resets the new display adapter, Same as SetNewDisplayAdapter(ALLEGRO_DEFAULT_DISPLAY_ADAPTER).

void Allegro::MonitorInfoPlus::SetNewDisplayAdapter ( int  adapter)
static

Sets a new display adapter.

Parameters
adapterThe adapter.

Member Data Documentation

int Allegro::MonitorInfoPlus::height

The height of the monitor.

int Allegro::MonitorInfoPlus::width

The width of the monitor.

int Allegro::MonitorInfoPlus::x1

Left x of the monitor.

int Allegro::MonitorInfoPlus::x2

Right x of the monitor.

int Allegro::MonitorInfoPlus::y1

Top y of the monitor.

int Allegro::MonitorInfoPlus::y2

Bottom y of the monitor.