summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-03-29 13:25:01 +0000
committeralberth <alberth@openttd.org>2009-03-29 13:25:01 +0000
commit64bb0e60e494e6df961f4c9d4c81ee2fb255c4d8 (patch)
tree167c446a0dc246a9b957c71e264453b36f6bc4d6 /src/widget_type.h
parentf436a58b5e83742f2809377e4852a8c353d766ee (diff)
downloadopenttd-64bb0e60e494e6df961f4c9d4c81ee2fb255c4d8.tar.xz
(svn r15889) -Codechange: Add pre/inter/post space to nested background widgets
Diffstat (limited to 'src/widget_type.h')
-rw-r--r--src/widget_type.h5
1 files changed, 4 insertions, 1 deletions
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);