summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-01-24 14:32:20 +0000
committerbjarni <bjarni@openttd.org>2007-01-24 14:32:20 +0000
commit8c098db7a81546f3154b845e123bfcb2731d4f35 (patch)
tree3a5b9fe40052ed1cff61cb6dbf3a984c0ecf84f0 /src/window.h
parent0996de79df839647968838498d1953319705606d (diff)
downloadopenttd-8c098db7a81546f3154b845e123bfcb2731d4f35.tar.xz
(svn r8390) -Codechange (r8384): Rewrote ResizeButtons()
Now it only works on first and last widget to resize It now works with offsets correctly (no longer assumes the left is 0) It's no longer needed to have a widget right of the ones you resize Can handle any number of widgets
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/window.h b/src/window.h
index 5e5fcf6ba..90600ad44 100644
--- a/src/window.h
+++ b/src/window.h
@@ -768,19 +768,10 @@ enum SpecialMouseMode {
void ScrollbarClickHandler(Window *w, const Widget *wi, int x, int y);
/** Evenly distribute some widgets when resizing horizontally (often a button row)
- * @param w widow to modify
- * @param a,b,c,d the widgets to resize (left to right, order matters)
- * @param right the widget right of the buttons, that needs resizing
- */
-void ResizeButtons(Window *w, byte a, byte b, byte right);
-void ResizeButtons(Window *w, byte a, byte b, byte c, byte right);
-void ResizeButtons(Window *w, byte a, byte b, byte c, byte d, byte right);
-
-/** Evenly distribute some widgets when resizing horizontally (often a button row)
- * When only two arguments are given, the widgets are presumed to be on a line and only the ends are given
+ * The widgets are presumed to be in a line and numberef from left to right (without gaps)
* @param w widow to modify
* @param left The leftmost widget to resize
- * @param right The widget just right of the widgets to resize
+ * @param right The rightmost widget to resize. Since right side of it is used, remember to set it to RESIZE_RIGHT
*/
void ResizeButtons(Window *w, byte left, byte right);