clutter: Add API to retrieve the physical size of absolute devices

This will be used in upper layers to match abs input devices (touchscreens,
tablets) to the corresponding output.
This commit is contained in:
Carlos Garnacho
2018-04-20 16:33:02 +02:00
committed by Georges Basile Stavracas Neto
parent 2b938ce795
commit df48b94889
5 changed files with 84 additions and 0 deletions

View File

@ -171,6 +171,10 @@ void clutter_input_device_set_mapping_mode (ClutterInputDev
CLUTTER_EXPORT
gboolean clutter_input_device_is_grouped (ClutterInputDevice *device,
ClutterInputDevice *other_device);
CLUTTER_EXPORT
gboolean clutter_input_device_get_physical_size (ClutterInputDevice *device,
gdouble *width,
gdouble *height);
G_END_DECLS