#include <renderservice.h>
Public Member Functions | |
Display (int index) | |
int | getIndex () const |
float | getDiagonalDPI () const |
float | getHorizontalDPI () const |
float | getVerticalDPI () const |
const std::string & | getName () const |
const glm::ivec2 & | getMin () const |
const glm::ivec2 & | getMax () const |
math::Rect | getBounds () const |
bool | isValid () const |
std::string | toString () const |
bool | operator== (const Display &rhs) const |
bool | operator!= (const Display &rhs) const |
Groups together important display information
Display | ( | int | index | ) |
Extracts display information. Index must be >= 0 && < SDL::getDisplayCount()
index | display index |
math::Rect getBounds | ( | ) | const |
float getDiagonalDPI | ( | ) | const |
Returns diagonal dots per inch. 0 if diagonal DPI not available.
float getHorizontalDPI | ( | ) | const |
Returns horizontal dots per inch. 0 if horizontal DPI not available.
int getIndex | ( | ) | const |
const glm::ivec2& getMax | ( | ) | const |
const glm::ivec2& getMin | ( | ) | const |
const std::string& getName | ( | ) | const |
Returns display name, empty if not available.
float getVerticalDPI | ( | ) | const |
Returns vertical dots per inch. 0 if vertical DPI not available.
bool isValid | ( | ) | const |
Returns if this display has valid bounds.
bool operator!= | ( | const Display & | rhs | ) | const |
bool operator== | ( | const Display & | rhs | ) | const |
std::string toString | ( | ) | const |