diff options
author | Ton Roosendaal <ton@blender.org> | 2004-07-05 12:48:17 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-07-05 12:48:17 +0400 |
commit | cd47cfd3d1d6c760ec09b03f1c733bdcef1128ae (patch) | |
tree | 8ff6f60d7e0687da16559845f1853a57272c8f94 /source/blender/include/BIF_interface.h | |
parent | c1ce82bd674a32be150f863e89209b2b074cffd6 (diff) |
New: color picker!
With a click on the 'COL' buttons (the ones showing RGB) a menu pops up
with three colorpicking fields and a palette.
The fields are the three planar intersections of a HSV cube, each allowing
choosing in the field without the field changing.
The palette is 'modal' unfortunately (couldn't find a simple working other
method) where the button "paste to color" denotes the state that click in
palette copies to edited color, and "copy to palette" means the active
color is copied into the palette...
Todo:
- saving of palette in file
- decide whether ESC leaves without changes...
Diffstat (limited to 'source/blender/include/BIF_interface.h')
-rw-r--r-- | source/blender/include/BIF_interface.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/include/BIF_interface.h b/source/blender/include/BIF_interface.h index 75cd2ee68f4..048417dff0a 100644 --- a/source/blender/include/BIF_interface.h +++ b/source/blender/include/BIF_interface.h @@ -74,6 +74,8 @@ struct ScrArea; #define UI_BLOCK_BUSY 8 #define UI_BLOCK_NUMSELECT 16 #define UI_BLOCK_ENTER_OK 32 +#define UI_BLOCK_NOSHADOW 64 + /* block->flag bits 12-15 are identical to but->flag bits */ /* block->font, for now: bold = medium+1 */ @@ -144,6 +146,7 @@ struct ScrArea; #define INLINK (23<<9) #define KEYEVT (24<<9) #define ICONTEXTROW (25<<9) +#define HSVCUBE (26<<9) #define BUTTYPE (31<<9) @@ -158,7 +161,7 @@ void uiRoundBox(float minx, float miny, float maxx, float maxy, float rad); void uiSetRoundBox(int type); void uiRoundRect(float minx, float miny, float maxx, float maxy, float rad); -void uiDrawMenuBox(float minx, float miny, float maxx, float maxy); +void uiDrawMenuBox(float minx, float miny, float maxx, float maxy, short flag); void uiTextBoundsBlock(uiBlock *block, int addval); void uiBoundsBlock(struct uiBlock *block, int addval); void uiDrawBlock(struct uiBlock *block); |