[mutter/wip/carlosg/device-capabilities: 2/9] clutter: Add ClutterInputCapabilities flagset




commit 22bff27960bcdf9dcd30cb4e1379c100a5dec7a5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Mar 8 17:03:31 2022 +0100

    clutter: Add ClutterInputCapabilities flagset
    
    This will be a truer representation of input devices in the native
    backend, since a single device can have multiple capabilities.

 clutter/clutter/clutter-enums.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/clutter/clutter/clutter-enums.h b/clutter/clutter/clutter-enums.h
index 9ee55fb5c4..701f6ace77 100644
--- a/clutter/clutter/clutter-enums.h
+++ b/clutter/clutter/clutter-enums.h
@@ -935,6 +935,19 @@ typedef enum /*< prefix=CLUTTER_FLOW >*/
   CLUTTER_FLOW_VERTICAL
 } ClutterFlowOrientation;
 
+/**
+ * ClutterInputDeviceCapabilities:
+ **/
+typedef enum /*< prefix=CLUTTER_INPUT_CAPABILITY >*/
+{
+  CLUTTER_INPUT_CAPABILITY_POINTER = 1 << 0,
+  CLUTTER_INPUT_CAPABILITY_KEYBOARD = 1 << 1,
+  CLUTTER_INPUT_CAPABILITY_TOUCHPAD = 1 << 2,
+  CLUTTER_INPUT_CAPABILITY_TOUCH = 1 << 3,
+  CLUTTER_INPUT_CAPABILITY_TABLET_TOOL = 1 << 4,
+  CLUTTER_INPUT_CAPABILITY_TABLET_PAD = 1 << 5,
+} ClutterInputCapabilities;
+
 /**
  * ClutterInputDeviceType:
  * @CLUTTER_POINTER_DEVICE: A pointer device


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]