summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 62757f9c4..853615905 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -138,13 +138,14 @@ struct Window : ZeroedMemoryAllocator {
protected:
void Initialize(int x, int y, int min_width, int min_height,
- WindowClass cls, const Widget *widget, int window_number);
+ WindowClass cls, const Widget *widget, NWidgetBase *nwid, int window_number);
void FindWindowPlacementAndResize(int def_width, int def_height);
void FindWindowPlacementAndResize(const WindowDesc *desc);
public:
Window(int x, int y, int width, int height, WindowClass cls, const Widget *widget);
Window(const WindowDesc *desc, WindowNumber number = 0);
+ Window();
virtual ~Window();
/* Don't allow arrays; arrays of Windows are pointless as you need
@@ -183,6 +184,8 @@ public:
Window *z_front; ///< The window in front of us in z-order.
Window *z_back; ///< The window behind us in z-order.
+ void InitNested(const WindowDesc *desc, WindowNumber number = 0);
+
/**
* Sets the enabled/disabled status of a widget.
* By default, widgets are enabled.