@@ -342,17 +342,32 @@ protected:
public:
Window(const WindowDesc *desc, WindowNumber number = 0);
Window();
virtual ~Window();
/* Don't allow arrays; arrays of Windows are pointless as you need
* to destruct them all at the same time too, which is kinda hard. */
FORCEINLINE void *operator new[](size_t size) { NOT_REACHED(); }
/* Don't free the window directly; it corrupts the linked list when iterating */
FORCEINLINE void operator delete(void *ptr) {}
/**
* Helper allocation function to disallow something.
* Don't allow arrays; arrays of Windows are pointless as you need
* to destruct them all at the same time too, which is kinda hard.
* @param size the amount of space not to allocate
*/
FORCEINLINE void *operator new[](size_t size)
{
NOT_REACHED();
}
* Don't free the window directly; it corrupts the linked list when iterating
* @param ptr the pointer not to free
FORCEINLINE void operator delete(void *ptr)
uint16 flags4; ///< Window flags, @see WindowFlags
WindowClass window_class; ///< Window class
WindowNumber window_number; ///< Window number within the window class
int left; ///< x position of left edge of the window