summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-21 16:00:52 +0000
committeralberth <alberth@openttd.org>2009-05-21 16:00:52 +0000
commitdb1be47d768f4938e187d5994eae8d519e4757cf (patch)
tree380123aed47ff0331cc708b8a16a265bf8f1505e /src
parent054deab7b3fd2a5998de7cdfb4c0893865fe7c8f (diff)
downloadopenttd-db1be47d768f4938e187d5994eae8d519e4757cf.tar.xz
(svn r16368) -Codechange: Only leaf widgets use min_x and min_y.
Diffstat (limited to 'src')
-rw-r--r--src/widget_type.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index 53a887e45..e4298fcfb 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -173,8 +173,6 @@ public:
};
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 @@ public:
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.