16 #ifndef DisplayDevice_h
17 #define DisplayDevice_h
19 #include <pointing/utils/URI.h>
44 Point(
void) : x(0), y(0) {}
45 Point(
float x,
float y) : x(x), y(y) {}
53 Size(
void) : width(0), height(0) {}
54 Size(
float w,
float h) : width(w), height(h) {}
64 Bounds(
float x,
float y,
float w,
float h) : origin(x,y), size(w,h) {}
93 virtual double getResolution(
double *hppi,
double *vppi,
double *defval=0) ;
107 virtual URI
getURI(
bool expanded=
false)
const = 0 ;
113 virtual void debug(std::ostream& )
const {}
115 virtual ~DisplayDevice(
void) {}
Display bounds (origin and size) in pixels.
Definition: DisplayDevice.h:60
A structure to maintain coordinates of a pixel.
Definition: DisplayDevice.h:42
virtual double getRefreshRate(double *defval=0)=0
virtual void setDebugLevel(int)
Sets the level of information for debugging purposes (default = 0).
Definition: DisplayDevice.h:112
virtual URI getURI(bool expanded=false) const =0
DisplayDevice class is used to represent the displays connected to the computer.
Definition: DisplayDevice.h:31
virtual double getResolution(double *hppi, double *vppi, double *defval=0)
Computes the pixel density (resolution) of the display device.
Definition: DisplayDevice.cpp:85
Display size in mms.
Definition: DisplayDevice.h:51
static DisplayDevice * create(const char *device_uri=0)
Static create method is used to instantiate an object of the class.
Definition: DisplayDevice.cpp:40
virtual Bounds getBounds(Bounds *defval=0)=0
virtual Size getSize(Size *defval=0)=0