Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-06-27 13:31:28 +0300
committerCampbell Barton <campbell@blender.org>2022-06-27 13:36:40 +0300
commita61792968363bbd443f03186e77fef77ddbf88a7 (patch)
tree7ae168d0e89f03d5dbed24cb12be0c3033ad651f /intern/ghost/GHOST_Types.h
parent3cf6516e7b917bd81d7147b57baafe2495c759f4 (diff)
Cleanup: rename misleading/inconsistent GHOST types
Remove mask suffix from: - GHOST_TButtonMask - GHOST_TModifierKeyMask .. neither are used as bit-masks. Remove 'Grab' from: - GHOST_kGrabAxisNone - GHOST_kGrabAxisY .. matching the existing GHOST_TAxisFlag & GHOST_kAxisX.
Diffstat (limited to 'intern/ghost/GHOST_Types.h')
-rw-r--r--intern/ghost/GHOST_Types.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h
index 76e6525ebfe..2fc84349eb9 100644
--- a/intern/ghost/GHOST_Types.h
+++ b/intern/ghost/GHOST_Types.h
@@ -123,8 +123,8 @@ typedef enum {
GHOST_kModifierKeyLeftControl,
GHOST_kModifierKeyRightControl,
GHOST_kModifierKeyOS,
- GHOST_kModifierKeyNumMasks
-} GHOST_TModifierKeyMask;
+ GHOST_kModifierKeyNum
+} GHOST_TModifierKey;
typedef enum {
GHOST_kWindowStateNormal = 0,
@@ -163,8 +163,8 @@ typedef enum {
/* Trackballs and programmable buttons. */
GHOST_kButtonMaskButton6,
GHOST_kButtonMaskButton7,
- GHOST_kButtonNumMasks
-} GHOST_TButtonMask;
+ GHOST_kButtonNum
+} GHOST_TButton;
typedef enum {
GHOST_kEventUnknown = 0,
@@ -419,9 +419,9 @@ typedef enum {
typedef enum {
/** Axis that cursor grab will wrap. */
- GHOST_kGrabAxisNone = 0,
+ GHOST_kAxisNone = 0,
GHOST_kAxisX = (1 << 0),
- GHOST_kGrabAxisY = (1 << 1),
+ GHOST_kAxisY = (1 << 1),
} GHOST_TAxisFlag;
typedef void *GHOST_TEventDataPtr;
@@ -437,7 +437,7 @@ typedef struct {
typedef struct {
/** The mask of the mouse button. */
- GHOST_TButtonMask button;
+ GHOST_TButton button;
/** Associated tablet data. */
GHOST_TabletData tablet;
} GHOST_TEventButtonData;