1 #ifndef h_mmui_context_h
2 #define h_mmui_context_h
4 /* this header is just an extension to mmui.h really, but rather than clutter that one up thought I'd best
8 /* most of this context never changed (or shouldn't change anyway) over the lifetime of the session.
9 * Some few values may change however, as noted below, if the detail pane is toggled. (Or possible
10 * other theme changes if we add any over time. The rapidity of development is starting to show :)
14 // context that generally doesn't change over a session
16 unsigned int screen_width;
18 unsigned int font_rgba_r;
19 unsigned int font_rgba_g;
20 unsigned int font_rgba_b;
21 unsigned int font_rgba_a;
23 unsigned int grid_offset_x;
24 unsigned int grid_offset_y;
26 unsigned int icon_offset_x;
27 unsigned int icon_offset_y;
28 unsigned int icon_max_width;
29 unsigned int icon_max_height;
30 unsigned int sel_icon_offset_x;
31 unsigned int sel_icon_offset_y;
33 unsigned int text_width;
34 unsigned int text_clip_x;
35 unsigned int text_offset_x;
36 unsigned int text_offset_y;
37 unsigned int text_hilite_offset_y;
39 unsigned int arrow_bar_x;
40 unsigned int arrow_bar_y;
41 unsigned int arrow_bar_clip_w;
42 unsigned int arrow_bar_clip_h;
43 unsigned int arrow_up_x;
44 unsigned int arrow_up_y;
45 unsigned int arrow_down_x;
46 unsigned int arrow_down_y;
49 SDL_Color fontcolor; // calculated; used for default font colour by various widgets
51 // context that may well change over the session
53 unsigned char row_max;
54 unsigned char col_max;
56 unsigned int cell_width;
57 unsigned int cell_height;
61 void ui_recache_context ( ui_context_t *c );