diff options
author | alberth <alberth@openttd.org> | 2009-05-21 15:48:27 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-05-21 15:48:27 +0000 |
commit | 054deab7b3fd2a5998de7cdfb4c0893865fe7c8f (patch) | |
tree | d27e97214b7fa09b4a4984e8718e03a934dd0d75 /src/widget_type.h | |
parent | 82532ac12e6c38a3816a8267f83ac2df142ac67b (diff) | |
download | openttd-054deab7b3fd2a5998de7cdfb4c0893865fe7c8f.tar.xz |
(svn r16367) -Codechange: Do not use min_x and min_y for storing smallest size to allow initialization more than once.
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index af15e2bef..53a887e45 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -173,12 +173,17 @@ public: }; WidgetType type; ///< Type of the widget / nested widget. - uint min_x; ///< Minimal horizontal size. - uint min_y; ///< Minimal vertical size. + 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). uint resize_y; ///< Vertical resize step (\c 0 means not resizable). + /* Size of the widget in the smallest window possible. + * Computed by #ComputeMinimalSize() followed by #AssignMinimalPosition(). + */ + uint smallest_x; ///< Smallest horizontal size of the widget in a filled window. + uint smallest_y; ///< Smallest vertical size of the widget in a filled window. uint pos_x; ///< Horizontal position of top-left corner of the widget in the window. uint pos_y; ///< Vertical position of top-left corner of the widget in the window. |