mirror of https://github.com/OpenTTD/OpenTTD
(svn r16167) -Codechange: Added empty-ness test to nested widget containers.
parent
e04ddbe0ac
commit
25ac77a612
|
@ -212,6 +212,9 @@ public:
|
||||||
void Add(NWidgetBase *wid);
|
void Add(NWidgetBase *wid);
|
||||||
void SetPIP(uint8 pip_pre, uint8 pip_inter, uint8 pip_post);
|
void SetPIP(uint8 pip_pre, uint8 pip_inter, uint8 pip_post);
|
||||||
|
|
||||||
|
/** Return whether the container is empty. */
|
||||||
|
inline bool IsEmpty() { return head == NULL; };
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
uint8 pip_pre; ///< Amount of space before first widget.
|
uint8 pip_pre; ///< Amount of space before first widget.
|
||||||
uint8 pip_inter; ///< Amount of space between widgets.
|
uint8 pip_inter; ///< Amount of space between widgets.
|
||||||
|
|
Loading…
Reference in New Issue