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>
|
static DisplayDevice * | create (const char *device_uri=0) |
| Static create method is used to instantiate an object of the class.
|
|
static DisplayDevice * | create (std::string device_uri) |
|
The DummyDisplayDevice class is a pseudo-device class. It stores configuration values passed on the query string and simulates the display behavior.
Bounds pointing::DummyDisplayDevice::getBounds |
( |
Bounds * |
defval = 0 | ) |
|
|
inlinevirtual |
double pointing::DummyDisplayDevice::getRefreshRate |
( |
double * |
defval = 0 | ) |
|
|
inlinevirtual |
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
-
hppi | Horizontal resolution (OUT) |
vppi | Vertical resolution (OUT) |
defval | Default value |
- Returns
- PPI resolution
Reimplemented from pointing::DisplayDevice.
Size pointing::DummyDisplayDevice::getSize |
( |
Size * |
defval = 0 | ) |
|
|
inlinevirtual |
URI pointing::DummyDisplayDevice::getURI |
( |
bool |
expanded = false | ) |
const |
|
virtual |
- Returns
- The corresponding URI of the device.
- Parameters
-
expanded | specifies if additional parameters must be displayed |
Implements pointing::DisplayDevice.
void pointing::DummyDisplayDevice::setBounds |
( |
Bounds |
b | ) |
|
|
inline |
setBounds
- Parameters
-
b | is the bounds of the display expressed in pixels. |
void pointing::DummyDisplayDevice::setRefreshRate |
( |
int |
r | ) |
|
|
inline |
setRefreshRate
- Parameters
-
r | represents the refresh rate of the display (Hz). |
void pointing::DummyDisplayDevice::setResolution |
( |
double |
r | ) |
|
|
inline |
setResolution
- Parameters
-
r | is the pixel density in PPI. |
void pointing::DummyDisplayDevice::setSize |
( |
Size |
s | ) |
|
|
inline |
setSize
- Parameters
-
s | is the size of the display expressed in mms. |
The documentation for this class was generated from the following files: