Libpointing
An open-source cross-platform library to get raw events from pointing devices and master transfer functions.
Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
pointing::DisplayDeviceManager Class Reference
Inheritance diagram for pointing::DisplayDeviceManager:
pointing::osxDisplayDeviceManager pointing::winDisplayDeviceManager pointing::xorgDisplayDeviceManager

Public Member Functions

void addDeviceUpdateCallback (DeviceUpdateCallback callback, void *context)
 Adds the callback function which is called when a device was added or removed.
 
void removeDeviceUpdateCallback (DeviceUpdateCallback callback, void *context)
 Removes the callback function which is called when a device was added or removed.
 
size_t size () const
 size More...
 
DisplayDescriptorIterator begin ()
 
DisplayDescriptorIterator end ()
 

Static Public Member Functions

static DisplayDeviceManagerget ()
 This static function is used to instantiate a platform-specific object of the class or return the already existing one.
 

Protected Types

typedef std::set< CallbackInfo >
::iterator 
CallbackInfoIterator
 

Protected Member Functions

void callCallbackFunctions (DisplayDeviceDescriptor &descriptor, bool wasAdded)
 
void addDevice (DisplayDeviceDescriptor &descriptor)
 
void removeDevice (DisplayDeviceDescriptor &descriptor)
 

Protected Attributes

DeviceUpdateCallback callback
 
DisplayDescriptorSet descriptors
 
std::set< CallbackInfo > callbackInfos
 

Static Protected Attributes

static DisplayDeviceManagersingleManager = 0
 

Member Function Documentation

size_t pointing::DisplayDeviceManager::size ( ) const
inline

size

Returns
The number of Display Devices

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