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/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/interface.h')
-rw-r--r-- | source/blender/include/interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/include/interface.h b/source/blender/include/interface.h index 887511fa8ee..e25aa2d838b 100644 --- a/source/blender/include/interface.h +++ b/source/blender/include/interface.h @@ -200,6 +200,8 @@ struct uiBlock { /* interface.c */ extern void ui_check_but(uiBut *but); extern double ui_get_but_val(uiBut *but); +extern void ui_get_but_vectorf(uiBut *but, float *vec); +extern void ui_set_but_vectorf(uiBut *but, float *vec); extern void ui_autofill(uiBlock *block); extern void ui_graphics_to_window(int win, float *x, float *y); extern void ui_window_to_graphics(int win, float *x, float *y); |