Mercurial > hg > openttd
changeset 11962:9de330e3b29b draft
(svn r16368) -Codechange: Only leaf widgets use min_x and min_y.
author | alberth <alberth@openttd.org> |
---|---|
date | Thu, 21 May 2009 16:00:52 +0000 |
parents | 69a41fde01e1 |
children | de84ab2c6641 |
files | src/widget_type.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/widget_type.h +++ b/src/widget_type.h @@ -173,8 +173,6 @@ }; WidgetType type; ///< Type of the widget / nested widget. - uint min_x; ///< Minimal horizontal size of only this widget. - uint min_y; ///< Minimal vertical size of only this widget. bool fill_x; ///< Allow horizontal filling from initial size. bool fill_y; ///< Allow vertical filling from initial size. uint resize_x; ///< Horizontal resize step (\c 0 means not resizable). @@ -208,6 +206,9 @@ void SetResize(uint resize_x, uint resize_y); void AssignMinimalPosition(uint x, uint y, uint given_width, uint given_height, bool allow_resize_x, bool allow_resize_y, bool rtl); + + uint min_x; ///< Minimal horizontal size of only this widget. + uint min_y; ///< Minimal vertical size of only this widget. }; /** Base class for a 'real' widget.