(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
This commit is contained in:
@@ -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[];
|
||||
|
Reference in New Issue
Block a user