diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 12:48:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 12:48:06 +0000 |
commit | 8b5421290027ab67cba25225111e3561ddd7af07 (patch) | |
tree | 95ff2c47f7b8b827b734ad75a798bd9257a80067 /src/window_gui.h | |
parent | d8154e00ac8b0df7ad0ac94c90a393aa5096e573 (diff) | |
download | openttd-8b5421290027ab67cba25225111e3561ddd7af07.tar.xz |
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 44b915a15..ab74b0c42 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -245,6 +245,12 @@ struct ResizeInfo { uint step_height; ///< Step-size of height resize changes }; +enum SortButtonState { + SBS_OFF, + SBS_DOWN, + SBS_UP, +}; + /** * Data structure for a window viewport */ @@ -322,6 +328,10 @@ public: void CDECL SetWidgetsLoweredState(bool lowered_stat, int widgets, ...); void InvalidateWidget(byte widget_index) const; + void DrawWidgets() const; + void DrawViewport() const; + void DrawSortButtonState(int widget, SortButtonState state) const; + void SetDirty() const; /*** Event handling ***/ @@ -612,8 +622,6 @@ Wcls *AllocateWindowDescFront(const WindowDesc *desc, int window_number) return new Wcls(desc, window_number); } -void DrawWindowViewport(const Window *w); - void RelocateAllWindows(int neww, int newh); /* misc_gui.cpp */ @@ -625,17 +633,6 @@ static inline void GuiShowTooltips(StringID str) /* widget.cpp */ 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.cpp */ extern Window *_z_windows[]; |