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 <ideasman42@gmail.com>2012-09-12 03:10:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-12 03:10:23 +0400
commit319831d7b8ed395f3a03c97dfb2fed75ee13daa2 (patch)
treed5a957c9b90381e4c402b7bbd1e5448dd713e04d /source/blender/editors/include
parented6215bff10710e5d0ff39faac3ab7516c71561c (diff)
code cleanup: use an enum for uiBut->pointype (more useful debug display of members),
and rename COL -> COLOR --- less confusing since the layout engine has row/col's.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/UI_interface.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index 06fb3b9f7d3..e4ac0a17b63 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -187,13 +187,14 @@ typedef struct uiLayout uiLayout;
* - bit 8: for 'bit'
* - bit 9-15: button type (now 6 bits, 64 types)
* */
-
-#define CHA 32
-#define SHO 64
-#define INT 96
-#define FLO 128
-/*#define FUN 192*/ /*UNUSED*/
-#define BIT 256
+typedef enum {
+ CHA = 32,
+ SHO = 64,
+ INT = 96,
+ FLO = 128,
+/* FUN = 192, */ /*UNUSED*/
+ BIT = 256
+} eButPointerType;
/* button reqyires a pointer */
#define BUTPOIN (FLO | SHO | CHA)
@@ -214,7 +215,7 @@ typedef enum {
ICONROW = (12 << 9),
ICONTOG = (13 << 9),
NUMSLI = (14 << 9),
- COL = (15 << 9),
+ COLOR = (15 << 9),
IDPOIN = (16 << 9),
HSVSLI = (17 << 9),
SCROLL = (18 << 9),