geis.h | geis.h | |||
---|---|---|---|---|
skipping to change at line 1158 | skipping to change at line 1158 | |||
*/ | */ | |||
/** @cond typedef */ | /** @cond typedef */ | |||
typedef struct _GeisDevice *GeisDevice; | typedef struct _GeisDevice *GeisDevice; | |||
/** @endcond */ | /** @endcond */ | |||
GEIS_API void geis_register_device_callback(Geis geis, | GEIS_API void geis_register_device_callback(Geis geis, | |||
GeisEventCallback event_callba ck, | GeisEventCallback event_callba ck, | |||
void *context); | void *context); | |||
/** | /** | |||
* Gets a cached device description for an identified device. | ||||
* | ||||
* @param[in] geis The GEIS API instance. | ||||
* @param[in] device_id Identifies the device. | ||||
* | ||||
* The GEIS instance caches a list of gesture-capable input devices that ha | ||||
ve | ||||
* been reported. The GeisDevice description for an identified device may | ||||
be | ||||
* retrieved from that cache with this call. | ||||
* | ||||
* @returns a valid GeisDevice for the identified device, or NULL if no suc | ||||
h | ||||
* device is in the cache. | ||||
*/ | ||||
GEIS_API GeisDevice geis_get_device(Geis geis, GeisInteger device_id); | ||||
/** | ||||
* Adds a reference count to a device. | * Adds a reference count to a device. | |||
* @memberof GeisDevice | * @memberof GeisDevice | |||
* | * | |||
* @param[in] device The device. | * @param[in] device The device. | |||
* | * | |||
* An application that wishes to guarantee the device object remains valid | * An application that wishes to guarantee the device object remains valid | |||
* should add a reference using this call, and unref when the object is no | * should add a reference using this call, and unref when the object is no | |||
* longer needed. | * longer needed. | |||
*/ | */ | |||
GEIS_API void geis_device_ref(GeisDevice device); | GEIS_API void geis_device_ref(GeisDevice device); | |||
skipping to change at line 1216 | skipping to change at line 1231 | |||
/** | /** | |||
* Gets the indicated attribute of the device. | * Gets the indicated attribute of the device. | |||
* @memberof GeisDevice | * @memberof GeisDevice | |||
* | * | |||
* @param[in] device The device. | * @param[in] device The device. | |||
* @param[in] index Indicates which attr to retrieve. | * @param[in] index Indicates which attr to retrieve. | |||
*/ | */ | |||
GEIS_API GeisAttr geis_device_attr(GeisDevice device, GeisSize index); | GEIS_API GeisAttr geis_device_attr(GeisDevice device, GeisSize index); | |||
/** | ||||
* Gets a named attribute from the device. | ||||
* @memberof GeisDevice | ||||
* | ||||
* @param[in] device The device. | ||||
* @param[in] attr_name The name of the attribute to retrieve. | ||||
*/ | ||||
GEIS_API GeisAttr geis_device_attr_by_name(GeisDevice device, GeisString at | ||||
tr_name); | ||||
/* @} */ | /* @} */ | |||
/** | /** | |||
* @defgroup geis_v2_class Gesture Classes | * @defgroup geis_v2_class Gesture Classes | |||
* @ingroup geis_v2 | * @ingroup geis_v2 | |||
* @{ | * @{ | |||
*/ | */ | |||
/** | /** | |||
* @class GeisGestureClass | * @class GeisGestureClass | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 28 lines changed or added | |||