From 64bb0e60e494e6df961f4c9d4c81ee2fb255c4d8 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 29 Mar 2009 13:25:01 +0000 Subject: (svn r15889) -Codechange: Add pre/inter/post space to nested background widgets --- src/widget_type.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/widget_type.h') diff --git a/src/widget_type.h b/src/widget_type.h index 87be3cea6..87cf2c87d 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -209,11 +209,13 @@ public: ~NWidgetContainer(); void Add(NWidgetBase *wid); + void SetPIP(uint8 pip_pre, uint8 pip_inter, uint8 pip_post); +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. -protected: + NWidgetBase *head; ///< Pointer to first widget in container. NWidgetBase *tail; ///< Pointer to last widget in container. }; @@ -267,6 +269,7 @@ public: ~NWidgetBackground(); void Add(NWidgetBase *nwid); + void SetPIP(uint8 pip_pre, uint8 pip_inter, uint8 pip_post); int ComputeMinimalSize(); void AssignMinimalPosition(uint x, uint y, uint given_width, uint given_height, bool allow_resize_x, bool allow_resize_y, bool rtl); -- cgit v1.2.3-70-g09d2