Stricter file handling when following Read statements (fvwm-convert-2.6).
[fvwm.git] / fvwm / menudim.h
blob673635fa2d861cc5f0ccadb756238ab1668f3eb7
1 /* -*-c-*- */
3 #ifndef MENUDIM_H
4 #define MENUDIM_H
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 --------------------------- */
27 struct MenuDimensions
29 /* width/height of the menu */
30 int width;
31 int height;
32 /* width of the actual menu item */
33 int item_width;
34 /* offset of the sidepic */
35 int sidepic_x_offset;
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 */
45 int hilight_x_offset;
46 /* width of the area to be hilighted */
47 int hilight_width;
48 /* y coordinate for item */
49 int y_offset;
50 /* width and height of the last screen
51 * the menu was mapped on */
52 int screen_width;
53 int screen_height;
56 /* ---------------------------- exported variables (globals) --------------- */
58 /* ---------------------------- interface functions ------------------------ */
60 int menudim_middle_x_offset(struct MenuDimensions *mdim);
62 /* ---------------------------- builtin commands --------------------------- */
64 #endif /* MENUDIM_H */