diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-18 10:36:55 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-18 10:36:55 +0000 |
commit | 04da1e1d456322d07e941ca19d35e9dc1020faf1 (patch) | |
tree | 4a7f2fbd16bbc5ad48c890141c722273c2efea2e /src/window_gui.h | |
parent | bba1a62db1d9dc233e57c34d639109f03d060a2b (diff) | |
download | openttd-04da1e1d456322d07e941ca19d35e9dc1020faf1.tar.xz |
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 70deb5512..e8f5d7e7a 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -581,6 +581,14 @@ static inline void GuiShowTooltips(StringID str) int GetWidgetFromPos(const Window *w, int x, int y); void DrawWindowWidgets(const Window *w); +enum SortButtonState { + SBS_OFF, + SBS_DOWN, + SBS_UP, +}; + +void DrawSortButtonState(const Window *w, int widget, SortButtonState state); + Window *GetCallbackWnd(); void DeleteNonVitalWindows(); |