6 /* ---------------------------- included header files ---------------------- */
8 /* ---------------------------- global definitions ------------------------- */
10 /* ---------------------------- global macros ------------------------------ */
12 #define MDIM_WIDTH(d) ((d).width)
13 #define MDIM_HEIGHT(d) ((d).height)
14 #define MDIM_ITEM_WIDTH(d) ((d).item_width)
15 #define MDIM_SIDEPIC_X_OFFSET(d) ((d).sidepic_x_offset)
16 #define MDIM_ICON_X_OFFSET(d) ((d).icon_x_offset)
17 #define MDIM_TRIANGLE_X_OFFSET(d) ((d).triangle_x_offset)
18 #define MDIM_ITEM_X_OFFSET(d) ((d).item_text_x_offset)
19 #define MDIM_ITEM_TEXT_Y_OFFSET(d) ((d).item_text_y_offset)
20 #define MDIM_HILIGHT_X_OFFSET(d) ((d).hilight_x_offset)
21 #define MDIM_HILIGHT_WIDTH(d) ((d).hilight_width)
22 #define MDIM_SCREEN_WIDTH(d) ((d).screen_width)
23 #define MDIM_SCREEN_HEIGHT(d) ((d).screen_height)
25 /* ---------------------------- type definitions --------------------------- */
29 /* width/height of the menu */
32 /* width of the actual menu item */
34 /* offset of the sidepic */
36 /* offsets of the mini icons */
37 int icon_x_offset
[MAX_MENU_ITEM_MINI_ICONS
];
38 /* offset of the submenu triangle col */
39 int triangle_x_offset
;
40 /* offset of the actual menu item */
41 int item_text_x_offset
;
42 /* y offset for item text. */
43 int item_text_y_offset
;
44 /* start of the area to be hilighted */
46 /* width of the area to be hilighted */
48 /* y coordinate for item */
50 /* width and height of the last screen
51 * the menu was mapped on */
56 /* ---------------------------- exported variables (globals) --------------- */
58 /* ---------------------------- interface functions ------------------------ */
60 int menudim_middle_x_offset(struct MenuDimensions
*mdim
);
62 /* ---------------------------- builtin commands --------------------------- */
64 #endif /* MENUDIM_H */