src/widget/widget.h
branchcpp_gui
changeset 6294 6c74bf9cc5a4
parent 6290 8078f7a3c8a0
child 6295 a88d8c2cff6e
--- a/src/widget/widget.h	Sat Mar 10 02:39:51 2007 +0000
+++ b/src/widget/widget.h	Sat Mar 10 04:52:01 2007 +0000
@@ -75,11 +75,15 @@
 	bool            m_dont_clip : 1;    ///< should not be clipped by parent (container)
 	StringID        m_tooltips;         ///< Tooltips that are shown when right clicking on a widget
 	Anchors         m_anchors;          ///< Resize/move when container resizes?
+	Point16         m_min_size;         ///< Minimum size
+	Point16         m_max_size;         ///< Maximum size
+	Point16         m_size_step;        ///< When resizing, what step is the best
 	Handlers        m_handlers;         ///< dynamically registered event handlers
 
 	Widget()
 		: m_container(NULL), m_id(0), m_rect(), m_data(0), m_feature_flags(FF_NONE), m_color(0)
 		, m_is_closing(false), m_tooltips(0), m_anchors(PIN_NONE)
+		, m_max_size(Point16::max()), m_size_step(1, 1)
 	{}
 
 	Widget(CompositeWidget *container, WidgetId id, FeatureFlags feature_flags, byte color, const Rect16 &rect, StringID tooltips)
@@ -93,6 +97,8 @@
 		, m_dont_clip(false)
 		, m_tooltips(tooltips)
 		, m_anchors(PIN_NONE)
+		, m_max_size(Point16::max())
+		, m_size_step(1, 1)
 	{}
 
 	int16 Left() const;