Defines |
#define | _LIBWACOM_H_ |
#define | WACOM_STYLUS_FALLBACK_ID 0xfffff |
#define | WACOM_ERASER_FALLBACK_ID 0xffffe |
Typedefs |
typedef struct _WacomDevice | WacomDevice |
typedef struct _WacomStylus | WacomStylus |
typedef struct _WacomError | WacomError |
typedef struct _WacomDeviceDatabase | WacomDeviceDatabase |
Enumerations |
enum | WacomErrorCode {
WERROR_NONE,
WERROR_BAD_ALLOC,
WERROR_INVALID_PATH,
WERROR_INVALID_DB,
WERROR_BAD_ACCESS,
WERROR_UNKNOWN_MODEL
} |
| Possible error codes. More...
|
enum | WacomBusType { WBUSTYPE_UNKNOWN,
WBUSTYPE_USB,
WBUSTYPE_SERIAL,
WBUSTYPE_BLUETOOTH
} |
| Bus types for tablets. More...
|
enum | WacomClass {
WCLASS_UNKNOWN,
WCLASS_INTUOS3,
WCLASS_INTUOS4,
WCLASS_CINTIQ,
WCLASS_BAMBOO,
WCLASS_GRAPHIRE,
WCLASS_ISDV4
} |
| Classes of devices. More...
|
enum | WacomStylusType {
WSTYLUS_UNKNOWN,
WSTYLUS_GENERAL,
WSTYLUS_INKING,
WSTYLUS_AIRBRUSH,
WSTYLUS_CLASSIC,
WSTYLUS_MARKER,
WSTYLUS_STROKE
} |
| Class of stylus. More...
|
Functions |
WacomError * | libwacom_error_new (void) |
| Allocate a new structure for error reporting.
|
void | libwacom_error_free (WacomError **error) |
| Free the error and associated memory.
|
enum WacomErrorCode | libwacom_error_get_code (WacomError *error) |
const char * | libwacom_error_get_message (WacomError *error) |
WacomDeviceDatabase * | libwacom_database_new (void) |
| Loads the Tablet and Stylus databases, to be used in libwacom_new_*() functions.
|
WacomDeviceDatabase * | libwacom_database_new_for_path (const char *datadir) |
| Loads the Tablet and Stylus databases, to be used in libwacom_new_*() functions, from the prefix path passes.
|
void | libwacom_database_destroy (WacomDeviceDatabase *db) |
| Free all memory used by the database.
|
WacomDevice * | libwacom_new_from_path (WacomDeviceDatabase *db, const char *path, int fallback, WacomError *error) |
| Create a new device reference from the given device path.
|
WacomDevice * | libwacom_new_from_usbid (WacomDeviceDatabase *db, int vendor_id, int product_id, WacomError *error) |
| Create a new device reference from the given vendor/product IDs.
|
WacomDevice * | libwacom_new_from_name (WacomDeviceDatabase *db, const char *name, WacomError *error) |
| Create a new device reference from the given name.
|
void | libwacom_destroy (WacomDevice *device) |
| Remove the device and free all memory and references to it.
|
WacomClass | libwacom_get_class (WacomDevice *device) |
const char * | libwacom_get_vendor (WacomDevice *device) |
int | libwacom_get_vendor_id (WacomDevice *device) |
const char * | libwacom_get_product (WacomDevice *device) |
const char * | libwacom_get_match (WacomDevice *device) |
int | libwacom_get_product_id (WacomDevice *device) |
int | libwacom_get_width (WacomDevice *device) |
| Retrieve the width of the device.
|
int | libwacom_get_height (WacomDevice *device) |
| Retrieve the height of the device.
|
int | libwacom_has_stylus (WacomDevice *device) |
int | libwacom_has_touch (WacomDevice *device) |
int | libwacom_get_num_buttons (WacomDevice *device) |
int * | libwacom_get_supported_styli (WacomDevice *device, int *num_styli) |
int | libwacom_has_ring (WacomDevice *device) |
int | libwacom_has_ring2 (WacomDevice *device) |
int | libwacom_has_vstrip (WacomDevice *device) |
int | libwacom_has_hstrip (WacomDevice *device) |
int | libwacom_is_builtin (WacomDevice *device) |
int | libwacom_is_reversible (WacomDevice *device) |
WacomBusType | libwacom_get_bustype (WacomDevice *device) |
const WacomStylus * | libwacom_stylus_get_for_id (WacomDeviceDatabase *db, int id) |
| Get the WacomStylus for the given tool ID.
|
int | libwacom_stylus_get_id (const WacomStylus *stylus) |
const char * | libwacom_stylus_get_name (const WacomStylus *stylus) |
int | libwacom_stylus_get_num_buttons (const WacomStylus *stylus) |
int | libwacom_stylus_has_eraser (const WacomStylus *stylus) |
int | libwacom_stylus_is_eraser (const WacomStylus *stylus) |
WacomStylusType | libwacom_stylus_get_type (const WacomStylus *stylus) |