From ab0b407da463e157cb08b125fe685c4cdc1bf219 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Fri, 22 Mar 2019 17:30:42 +0100 Subject: [PATCH] clutter/enums: Add pointer accessibility types Add the relevant enumeration types to support pointer accessibility features. https://gitlab.gnome.org/GNOME/mutter/merge_requests/512 --- clutter/clutter/clutter-enums.h | 82 +++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/clutter/clutter/clutter-enums.h b/clutter/clutter/clutter-enums.h index e131209fd..bb83a4a90 100644 --- a/clutter/clutter/clutter-enums.h +++ b/clutter/clutter/clutter-enums.h @@ -443,6 +443,88 @@ typedef enum CLUTTER_A11Y_FEATURE_STATE_CHANGE_BEEP = 1 << 13, } ClutterKeyboardA11yFlags; +/** + * ClutterPointerA11yFlags: + * @CLUTTER_A11Y_POINTER_ENABLED: + * @CLUTTER_A11Y_SECONDARY_CLICK_ENABLED: + * @CLUTTER_A11Y_DWELL_ENABLED: + * + * Pointer accessibility features applied to a ClutterInputDevice pointer. + * + */ +typedef enum { + CLUTTER_A11Y_SECONDARY_CLICK_ENABLED = 1 << 0, + CLUTTER_A11Y_DWELL_ENABLED = 1 << 1, +} ClutterPointerA11yFlags; + +/** + * ClutterPointerA11yDwellClickType: + * @CLUTTER_A11Y_DWELL_CLICK_TYPE_NONE: Internal use only + * @CLUTTER_A11Y_DWELL_CLICK_TYPE_PRIMARY: + * @CLUTTER_A11Y_DWELL_CLICK_TYPE_SECONDARY: + * @CLUTTER_A11Y_DWELL_CLICK_TYPE_MIDDLE: + * @CLUTTER_A11Y_DWELL_CLICK_TYPE_DOUBLE: + * @CLUTTER_A11Y_DWELL_CLICK_TYPE_DRAG: + * + * Dwell click types. + * + */ +typedef enum { + CLUTTER_A11Y_DWELL_CLICK_TYPE_NONE, + CLUTTER_A11Y_DWELL_CLICK_TYPE_PRIMARY, + CLUTTER_A11Y_DWELL_CLICK_TYPE_SECONDARY, + CLUTTER_A11Y_DWELL_CLICK_TYPE_MIDDLE, + CLUTTER_A11Y_DWELL_CLICK_TYPE_DOUBLE, + CLUTTER_A11Y_DWELL_CLICK_TYPE_DRAG, +} ClutterPointerA11yDwellClickType; + +/** + * ClutterPointerA11yDwellDirection: + * @CLUTTER_A11Y_DWELL_DIRECTION_NONE: + * @CLUTTER_A11Y_DWELL_DIRECTION_LEFT: + * @CLUTTER_A11Y_DWELL_DIRECTION_RIGHT: + * @CLUTTER_A11Y_DWELL_DIRECTION_UP: + * @CLUTTER_A11Y_DWELL_DIRECTION_DOWN: + * + * Dwell gesture directions. + * + */ +typedef enum { + CLUTTER_A11Y_DWELL_DIRECTION_NONE, + CLUTTER_A11Y_DWELL_DIRECTION_LEFT, + CLUTTER_A11Y_DWELL_DIRECTION_RIGHT, + CLUTTER_A11Y_DWELL_DIRECTION_UP, + CLUTTER_A11Y_DWELL_DIRECTION_DOWN, +} ClutterPointerA11yDwellDirection; + +/** + * ClutterPointerA11yDwellMode: + * @CLUTTER_A11Y_DWELL_MODE_WINDOW: + * @CLUTTER_A11Y_DWELL_MODE_GESTURE: + * + * Dwell mode. + * + */ +typedef enum { + CLUTTER_A11Y_DWELL_MODE_WINDOW, + CLUTTER_A11Y_DWELL_MODE_GESTURE, +} ClutterPointerA11yDwellMode; + +/** + * ClutterPointerA11yTimeoutType: + * @CLUTTER_A11Y_TIMEOUT_TYPE_SECONDARY_CLICK: + * @CLUTTER_A11Y_TIMEOUT_TYPE_DWELL: + * @CLUTTER_A11Y_TIMEOUT_TYPE_GESTURE: + * + * Pointer accessibility timeout type. + * + */ +typedef enum { + CLUTTER_A11Y_TIMEOUT_TYPE_SECONDARY_CLICK, + CLUTTER_A11Y_TIMEOUT_TYPE_DWELL, + CLUTTER_A11Y_TIMEOUT_TYPE_GESTURE, +} ClutterPointerA11yTimeoutType; + /** * ClutterActorFlags: * @CLUTTER_ACTOR_MAPPED: the actor will be painted (is visible, and inside