mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-01 17:30:10 +01:00
Add ei/eis getters for the device id
This commit is contained in:
parent
e3c34830db
commit
ba55bef917
4 changed files with 6 additions and 2 deletions
|
|
@ -102,6 +102,7 @@ _public_
|
|||
OBJECT_IMPLEMENT_SETTER(ei_device, user_data, void *);
|
||||
OBJECT_IMPLEMENT_GETTER(ei_device, width, uint32_t);
|
||||
OBJECT_IMPLEMENT_GETTER(ei_device, height, uint32_t);
|
||||
OBJECT_IMPLEMENT_GETTER(ei_device, id, uint32_t);
|
||||
|
||||
_public_ struct ei_seat *
|
||||
ei_device_get_seat(struct ei_device *device)
|
||||
|
|
|
|||
|
|
@ -101,6 +101,8 @@ struct ei_touch {
|
|||
double x, y;
|
||||
};
|
||||
|
||||
OBJECT_DECLARE_GETTER(ei_device, id, uint32_t);
|
||||
|
||||
struct ei_device *
|
||||
ei_device_new(struct ei_seat *seat, uint32_t deviceid);
|
||||
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ _public_
|
|||
OBJECT_IMPLEMENT_GETTER(eis_device, width, uint32_t);
|
||||
_public_
|
||||
OBJECT_IMPLEMENT_GETTER(eis_device, height, uint32_t);
|
||||
OBJECT_IMPLEMENT_GETTER(eis_device, id, uint32_t);
|
||||
|
||||
_public_ struct eis_seat *
|
||||
eis_device_get_seat(struct eis_device *device)
|
||||
|
|
|
|||
|
|
@ -97,8 +97,8 @@ struct eis_xkb_modifiers {
|
|||
uint32_t group;
|
||||
};
|
||||
|
||||
struct eis *
|
||||
eis_device_get_context(struct eis_device *device);
|
||||
OBJECT_DECLARE_GETTER(eis_device, id, uint32_t);
|
||||
OBJECT_DECLARE_GETTER(eis_device, context, struct eis *);
|
||||
|
||||
void
|
||||
eis_device_set_client_keymap(struct eis_device *device,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue