From 68707808c015db1cda0723882ffce99977d4593c Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 18 Jan 2008 10:36:55 +0000 Subject: (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. --- src/window_gui.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/window_gui.h') 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(); -- cgit v1.2.3-70-g09d2