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::xorgDisplayDevice Class Reference
Inheritance diagram for pointing::xorgDisplayDevice:
pointing::DisplayDevice

Public Member Functions

 xorgDisplayDevice (URI uri)
 
Bounds getBounds (Bounds *defval=0)
 
Size getSize (Size *defval=0)
 
double getRefreshRate (double *defval=0)
 
URI getURI (bool expanded=false) const
 
- Public Member Functions inherited from pointing::DisplayDevice
virtual double getResolution (double *hppi, double *vppi, double *defval=0)
 Computes the pixel density (resolution) of the display device. More...
 
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)
 

Member Function Documentation

DisplayDevice::Bounds pointing::xorgDisplayDevice::getBounds ( Bounds defval = 0)
virtual
Returns
Bounds of the device expressed in pixels.

Implements pointing::DisplayDevice.

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

Implements pointing::DisplayDevice.

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

Implements pointing::DisplayDevice.

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

Implements pointing::DisplayDevice.


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