diff options
author | glx <glx@openttd.org> | 2006-10-06 21:10:14 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2006-10-06 21:10:14 +0000 |
commit | 30e0a8e9522a3ea43fa501cd387ccf8cf962461b (patch) | |
tree | 94b2f19d11771e2c48d38b3bfaed3bc9b878b1e2 /window.h | |
parent | 592ed98a196841d51ce864e6b585bbb73572f689 (diff) | |
download | openttd-30e0a8e9522a3ea43fa501cd387ccf8cf962461b.tar.xz |
(svn r6669) -Add: vararg functions to set hidden/disabled/lowered state of multiple widgets in one call
Diffstat (limited to 'window.h')
-rw-r--r-- | window.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -62,6 +62,11 @@ enum ResizeFlags { WIDG_LOWERED = 6, // widget is paint lowered, a pressed button in fact } ResizeFlag; +/* used to indicate the end of widgets' list for vararg functions */ +enum { + WIDGET_LIST_END = -1, +}; + typedef struct Widget { byte type; ///< Widget type, see @WindowWidgetTypes byte display_flags; ///< Resize direction, alignment, etc. during resizing, see @ResizeFlags @@ -783,6 +788,9 @@ void InvalidateWindowData(WindowClass cls, WindowNumber number); void RaiseWindowButtons(Window *w); void RelocateAllWindows(int neww, int newh); int PositionMainToolbar(Window *w); +void CDECL SetWindowWidgetsDisabledState(Window *w, bool disab_stat, int widgets, ...); +void CDECL SetWindowWidgetsHiddenState(Window *w, bool hidden_stat, int widgets, ...); +void CDECL SetWindowWidgetsLoweredState(Window *w, bool lowered_stat, int widgets, ...); /* misc_gui.c*/ void GuiShowTooltips(StringID string_id); |