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 | 8f5c6ff3a167eacf8ae45c913e56c292e65ee110 (patch) | |
tree | 94b2f19d11771e2c48d38b3bfaed3bc9b878b1e2 /window.h | |
parent | 3d821bb32808638f598605f5002a44a9461cbdd7 (diff) | |
download | openttd-8f5c6ff3a167eacf8ae45c913e56c292e65ee110.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); |