Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
Public Member Functions | List of all members
pointing::DummyDisplayDevice Class Reference

The DummyDisplayDevice class is a pseudo-device class. It stores configuration values passed on the query string and simulates the display behavior. More...

#include <DummyDisplayDevice.h>

Inheritance diagram for pointing::DummyDisplayDevice:
pointing::DisplayDevice

Public Member Functions

 DummyDisplayDevice (URI uri)
 
void setBounds (Bounds b)
 setBounds More...
 
void setSize (Size s)
 setSize More...
 
void setRefreshRate (int r)
 setRefreshRate More...
 
void setResolution (double r)
 setResolution More...
 
Bounds getBounds (Bounds *=0)
 
Size getSize (Size *=0)
 
double getRefreshRate (double *=0)
 
double getResolution (double *hdpi=0, double *vdpi=0, double *defval=0)
 Computes the pixel density (resolution) of the display device. More...
 
URI getURI (bool expanded=false) const
 
- Public Member Functions inherited from pointing::DisplayDevice
double getResolution (double *defval=0)
 
virtual void setDebugLevel (int)
 Sets the level of information for debugging purposes (default = 0).
 
virtual void debug (std::ostream &) const
 

Additional Inherited Members

- Static Public Member Functions inherited from pointing::DisplayDevice
static DisplayDevicecreate (const char *device_uri=0)
 Static create method is used to instantiate an object of the class.
 
static DisplayDevicecreate (std::string device_uri)
 

Detailed Description

The DummyDisplayDevice class is a pseudo-device class. It stores configuration values passed on the query string and simulates the display behavior.

Member Function Documentation

Bounds pointing::DummyDisplayDevice::getBounds ( Bounds defval = 0)
inlinevirtual
Returns
Bounds of the device expressed in pixels.

Implements pointing::DisplayDevice.

double pointing::DummyDisplayDevice::getRefreshRate ( double *  defval = 0)
inlinevirtual
Returns
The refresh rate of the device in Hz.

Implements pointing::DisplayDevice.

double pointing::DummyDisplayDevice::getResolution ( double *  hppi = 0,
double *  vppi = 0,
double *  defval = 0 
)
virtual

Computes the pixel density (resolution) of the display device.

It is computed by calculating the diagonal size of the display in pixels and inches and then calculating PPI (Pixels per inch).

Parameters
hppiHorizontal resolution (OUT)
vppiVertical resolution (OUT)
defvalDefault value
Returns
PPI resolution

Reimplemented from pointing::DisplayDevice.

Size pointing::DummyDisplayDevice::getSize ( Size defval = 0)
inlinevirtual
Returns
The size of the device (width and height) in mm.

Implements pointing::DisplayDevice.

URI pointing::DummyDisplayDevice::getURI ( bool  expanded = false) const
virtual
Returns
The corresponding URI of the device.
Parameters
expandedspecifies if additional parameters must be displayed

Implements pointing::DisplayDevice.

void pointing::DummyDisplayDevice::setBounds ( Bounds  b)
inline

setBounds

Parameters
bis the bounds of the display expressed in pixels.
void pointing::DummyDisplayDevice::setRefreshRate ( int  r)
inline

setRefreshRate

Parameters
rrepresents the refresh rate of the display (Hz).
void pointing::DummyDisplayDevice::setResolution ( double  r)
inline

setResolution

Parameters
ris the pixel density in PPI.
void pointing::DummyDisplayDevice::setSize ( Size  s)
inline

setSize

Parameters
sis the size of the display expressed in mms.

The documentation for this class was generated from the following files: