Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


input.hh File Reference

A GdkDevice C++ wrapper interface. More...

#include <xfc/glib/object.hh>
#include <xfc/gdk/types.hh>
#include <vector>
#include <xfc/gdk/inline/input.inl>

Namespaces

Classes

Device Methods

Enumerations


Detailed Description

A GdkDevice C++ wrapper interface.

Provides Device, an object for handling extended input devices.


Enumeration Type Documentation

enum InputMode
 

An enumeration that describes the mode of an input device.

Enumeration values:
MODE_DISABLED  The device is disabled and will not report any events.
MODE_SCREEN  The device is enabled; the device's coordinate space maps to the entire screen.
MODE_WINDOW  The device is enabled; the device's coordinate space is mapped to a single window (the manner in which this window is chosen is undefined, but it will typically be the same way in which the focus window for key events is determined).

enum InputSource
 

An enumeration describing the type of an input device in general terms.

Enumeration values:
SOURCE_MOUSE  The device is a mouse (this will be reported for the core pointer, even if it is something else, such as a trackball).
SOURCE_PEN  The device is a stylus of a graphics tablet or similar device.
SOURCE_ERASER  The device is an eraser; typically, this would be the other end of a stylus on a graphics tablet.
SOURCE_CURSOR  The device is a graphics tablet "puck" or similar device.


Function Documentation

bool devices_list std::vector< Device * > &  devices  ) 
 

Returns the list of available input devices attached to the default display.

Parameters:
devices A reference to a vector of Device* to hold the list of devices.
Returns:
true if the vector is not empty.
The devices in this list are statically allocated and will be freed by GTK+. See also Gdk::Display::list_devcies.
Xfce Foundation Classes


Copyright © 2004-2005 The XFC Development Team XFC 4.3