X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmodui.h;fp=src%2Fmodui.h;h=fafbb3de19941332e4ecf0e6a885a1e37523318a;hb=3c3612761bcf77a5c4ec6810aa47e0e3f0131bf1;hp=0000000000000000000000000000000000000000;hpb=ac4a015bdc16db637536b51a5b21ad530bd68a1e;p=retroray diff --git a/src/modui.h b/src/modui.h new file mode 100644 index 0000000..fafbb3d --- /dev/null +++ b/src/modui.h @@ -0,0 +1,35 @@ +#ifndef MODUI_H_ +#define MODUI_H_ + +#include "rtk.h" + +#define TOOLBAR_HEIGHT 26 + +/* tools */ +enum { + TOOL_SEL, TOOL_MOVE, TOOL_ROT, TOOL_SCALE, + TOOL_UNION, TOOL_ISECT, TOOL_DIFF, TOOL_REND_AREA, + NUM_TOOLS +}; + +/* toolbar buttons */ +enum { + TBN_NEW, TBN_OPEN, TBN_SAVE, TBN_SEP1, + TBN_SEL, TBN_MOVE, TBN_ROT, TBN_SCALE, TBN_SEP2, + TBN_ADD, TBN_RM, TBN_SEP3, + TBN_UNION, TBN_ISECT, TBN_DIFF, TBN_SEP4, + TBN_MTL, TBN_REND, TBN_REND_AREA, TBN_VIEWREND, TBN_SEP5, TBN_CFG, + + NUM_TOOL_BUTTONS +}; + + +extern rtk_widget *toolbar, *mtlwin; +extern rtk_widget *tools[NUM_TOOLS]; + +int modui_init(void); +void modui_cleanup(void); + +void tbn_callback(rtk_widget *w, void *cls); + +#endif /* MODUI_H_ */