diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-05 00:35:50 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-05 00:35:50 +0400 |
commit | 842bb449c57fc95d7590574cc5d15753459bffe4 (patch) | |
tree | 8ea0722c505073b031c30705f7e19fd84ffbe072 /source/blender/include/BIF_interface.h | |
parent | c355aa06a8d4a921c29188081735b29722009416 (diff) |
huge commit, sorry!
this is part 1 of the UI makeover. It has:
- menu system from Matt integrated
- buttons drawing from Matt
- generic button panel system implemented
- converted displaybuttons (not the rest yet)
- cleaned up a lot in drawing spaces itself, to make it aligned and pixel exact.
- cleaned loads of little compiler warnings, protos...
still a lot of work needed, will all be in next week i hope!
(warn: 2 new c files! butspace.c and buttons_scene.c)
Diffstat (limited to 'source/blender/include/BIF_interface.h')
-rw-r--r-- | source/blender/include/BIF_interface.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/include/BIF_interface.h b/source/blender/include/BIF_interface.h index 8754a7a08d9..55fd6003a92 100644 --- a/source/blender/include/BIF_interface.h +++ b/source/blender/include/BIF_interface.h @@ -41,6 +41,11 @@ typedef struct uiBut uiBut; typedef struct uiBlock uiBlock; void uiEmboss(float x1, float y1, float x2, float y2, int sel); +void uiRoundBoxEmboss(float minx, float miny, float maxx, float maxy, float rad); +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 uiTextBoundsBlock(uiBlock *block, int addval); void uiBoundsBlock(struct uiBlock *block, int addval); @@ -99,6 +104,7 @@ typedef uiBlock* (*uiBlockFuncFP) (void *arg1); void uiDefBlockBut(uiBlock *block, uiBlockFuncFP func, void *func_arg1, char *str, short x1, short y1, short x2, short y2, char *tip); void uiDefIconBlockBut(uiBlock *block, uiBlockFuncFP func, void *func_arg1, int icon, short x1, short y1, short x2, short y2, char *tip); +void uiDefIconTextBlockBut(uiBlock *block, uiBlockFuncFP func, void *arg, int icon, char *str, short x1, short y1, short x2, short y2, char *tip); void uiDefKeyevtButS(uiBlock *block, int retval, char *str, short x1, short y1, short x2, short y2, short *spoin, char *tip); @@ -133,5 +139,12 @@ void uiButSetFunc (uiBut *but, void (*func)(void *arg1, void *arg2), void *arg short pupmenu(char *instr); short pupmenu_col(char *instr, int maxrow); +extern void uiFreePanels(struct ListBase *lb); +extern void uiNewPanel(struct ScrArea *sa, struct uiBlock *block, char *panelname, char *tabname, int ofsx, int ofsy, int sizex, int sizey); +extern void uiScalePanelBlock(struct uiBlock *block); +extern int uiIsPanelClosed(struct uiBlock *block); +extern void uiAnimatePanels(struct ScrArea *sa); +extern void uiSetPanel_view2d(struct ScrArea *sa); + #endif /* BIF_INTERFACE_H */ |