src/window.h
changeset 5822 f71317de4ab6
parent 5781 404262bfa03d
child 5824 8398b44ad3bc
--- a/src/window.h	Wed Jan 24 01:37:04 2007 +0000
+++ b/src/window.h	Wed Jan 24 02:36:55 2007 +0000
@@ -767,4 +767,21 @@
 
 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
+ * @param w widow to modify
+ * @param left The leftmost widget to resize
+ * @param right The widget just right of the widgets to resize
+ */
+void ResizeButtons(Window *w, byte left, byte right);
+
 #endif /* WINDOW_H */