File diff r13553:fe51d1a866c1 → r13554:d1964ead02ee
src/window_gui.h
Show inline comments
 
@@ -124,13 +124,13 @@ extern Window *_focused_window;
 
/**
 
 * High level window description
 
 */
 
struct WindowDesc : ZeroedMemoryAllocator {
 

	
 
	WindowDesc(int16 left, int16 top, int16 min_width, int16 min_height, int16 def_width, int16 def_height,
 
			WindowClass window_class, WindowClass parent_class, uint32 flags, const Widget *widgets,
 
			WindowClass window_class, WindowClass parent_class, uint32 flags,
 
			const NWidgetPart *nwid_parts = NULL, int16 nwid_length = 0);
 

	
 
	~WindowDesc();
 

	
 
	int16 left;                    ///< Prefered x position of left edge of the window. @see WindowDefaultPosition()
 
	int16 top;                     ///< Prefered y position of the top of the window. @see WindowDefaultPosition()
 
@@ -138,13 +138,12 @@ struct WindowDesc : ZeroedMemoryAllocato
 
	int16 minimum_height;          ///< Minimal height of the window.
 
	int16 default_width;           ///< Prefered initial width of the window.
 
	int16 default_height;          ///< Prefered initial height of the window.
 
	WindowClass cls;               ///< Class of the window, @see WindowClass.
 
	WindowClass parent_cls;        ///< Class of the parent window. @see WindowClass
 
	uint32 flags;                  ///< Flags. @see WindowDefaultFlags
 
	const Widget *widgets;         ///< List of widgets with their position and size for the window.
 
	const NWidgetPart *nwid_parts; ///< Nested widget parts describing the window.
 
	int16 nwid_length;             ///< Length of the #nwid_parts array.
 
	mutable Widget *new_widgets;   ///< Widgets generated from #nwid_parts.
 

	
 
	const Widget *GetWidgets() const;
 
};