Changeset - r11772:dac8ca998f7c
[Not reviewed]
master
0 1 0
alberth - 15 years ago 2009-04-26 16:30:12
alberth@openttd.org
(svn r16167) -Codechange: Added empty-ness test to nested widget containers.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/widget_type.h
Show inline comments
 
@@ -209,12 +209,15 @@ public:
 
	NWidgetContainer(WidgetType tp);
 
	~NWidgetContainer();
 

	
 
	void Add(NWidgetBase *wid);
 
	void SetPIP(uint8 pip_pre, uint8 pip_inter, uint8 pip_post);
 

	
 
	/** Return whether the container is empty. */
 
	inline bool IsEmpty() { return head == NULL; };
 

	
 
protected:
 
	uint8 pip_pre;     ///< Amount of space before first widget.
 
	uint8 pip_inter;   ///< Amount of space between widgets.
 
	uint8 pip_post;    ///< Amount of space after last widget.
 

	
 
	NWidgetBase *head; ///< Pointer to first widget in container.
0 comments (0 inline, 0 general)