device: Add the :name property to InputDevice

The InputDevice should have a name, possibly user readable, coming from
the backend.
This commit is contained in:
Emmanuele Bassi
2010-01-15 11:37:43 +00:00
parent 79ad2b6a72
commit cf4e05930a
3 changed files with 57 additions and 4 deletions

View File

@ -42,9 +42,8 @@ G_BEGIN_DECLS
/**
* ClutterInputDevice:
*
* Generic representation of an input device. The
* actual contents of this structure depend on the
* backend used.
* Generic representation of an input device. The actual contents of this
* structure depend on the backend used.
*/
typedef struct _ClutterInputDevice ClutterInputDevice;
typedef struct _ClutterInputDeviceClass ClutterInputDeviceClass;
@ -93,6 +92,7 @@ void clutter_input_device_get_device_coords (ClutterInputDevic
gint *x,
gint *y);
ClutterActor * clutter_input_device_get_pointer_actor (ClutterInputDevice *device);
G_CONST_RETURN gchar * clutter_input_device_get_device_name (ClutterInputDevice *device);
G_END_DECLS