766 }; |
766 }; |
767 |
767 |
768 void ScrollbarClickHandler(Window *w, const Widget *wi, int x, int y); |
768 void ScrollbarClickHandler(Window *w, const Widget *wi, int x, int y); |
769 |
769 |
770 /** Evenly distribute some widgets when resizing horizontally (often a button row) |
770 /** Evenly distribute some widgets when resizing horizontally (often a button row) |
771 * @param w widow to modify |
771 * The widgets are presumed to be in a line and numberef from left to right (without gaps) |
772 * @param a,b,c,d the widgets to resize (left to right, order matters) |
|
773 * @param right the widget right of the buttons, that needs resizing |
|
774 */ |
|
775 void ResizeButtons(Window *w, byte a, byte b, byte right); |
|
776 void ResizeButtons(Window *w, byte a, byte b, byte c, byte right); |
|
777 void ResizeButtons(Window *w, byte a, byte b, byte c, byte d, byte right); |
|
778 |
|
779 /** Evenly distribute some widgets when resizing horizontally (often a button row) |
|
780 * When only two arguments are given, the widgets are presumed to be on a line and only the ends are given |
|
781 * @param w widow to modify |
772 * @param w widow to modify |
782 * @param left The leftmost widget to resize |
773 * @param left The leftmost widget to resize |
783 * @param right The widget just right of the widgets to resize |
774 * @param right The rightmost widget to resize. Since right side of it is used, remember to set it to RESIZE_RIGHT |
784 */ |
775 */ |
785 void ResizeButtons(Window *w, byte left, byte right); |
776 void ResizeButtons(Window *w, byte left, byte right); |
786 |
777 |
787 #endif /* WINDOW_H */ |
778 #endif /* WINDOW_H */ |