diff options
author | rubidium <rubidium@openttd.org> | 2008-04-07 20:28:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-07 20:28:58 +0000 |
commit | ee02dd7dadb00e51a04b65e38603d77e9cfa1848 (patch) | |
tree | 9f8c5c236cf106ef895d27405d1a9d266e338480 /src/widget.cpp | |
parent | f04ecd2e4a90bc62a6d8728261a8fdf78efdd545 (diff) | |
download | openttd-ee02dd7dadb00e51a04b65e38603d77e9cfa1848.tar.xz |
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r-- | src/widget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index bca66bdc5..38bfe98d3 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -186,6 +186,10 @@ void DrawFrameRect(int left, int top, int right, int bottom, int ctab, FrameFlag } +/** + * Paint all widgets of a window. + * @param w Window + */ void DrawWindowWidgets(const Window *w) { const DrawPixelInfo* dpi = _cur_dpi; @@ -569,6 +573,7 @@ void ResizeButtons(Window *w, byte left, byte right) } } +/** Resize a widget and shuffle other widgets around to fit. */ void ResizeWindowForWidget(Window *w, int widget, int delta_x, int delta_y) { int right = w->widget[widget].right; |