stop appending repeat keys to the input buffer
[retroray] / src / modui.h
1 #ifndef MODUI_H_
2 #define MODUI_H_
3
4 #include "rtk.h"
5
6 #define TOOLBAR_HEIGHT  26
7
8 /* tools */
9 enum {
10         TOOL_SEL, TOOL_MOVE, TOOL_ROT, TOOL_SCALE,
11         TOOL_UNION, TOOL_ISECT, TOOL_DIFF, TOOL_REND_AREA,
12         NUM_TOOLS
13 };
14
15 /* toolbar buttons */
16 enum {
17         TBN_NEW, TBN_OPEN, TBN_SAVE, TBN_SEP1,
18         TBN_SEL, TBN_MOVE, TBN_ROT, TBN_SCALE, TBN_SEP2,
19         TBN_ADD, TBN_RM, TBN_SEP3,
20         TBN_UNION, TBN_ISECT, TBN_DIFF, TBN_SEP4,
21         TBN_MTL, TBN_REND, TBN_REND_AREA, TBN_VIEWREND, TBN_SEP5, TBN_CFG,
22
23         NUM_TOOL_BUTTONS
24 };
25
26
27 extern rtk_widget *toolbar, *mtlwin;
28 extern rtk_widget *tools[NUM_TOOLS];
29
30 int modui_init(void);
31 void modui_cleanup(void);
32
33 void tbn_callback(rtk_widget *w, void *cls);
34
35 #endif  /* MODUI_H_ */