## wxCalculateLayoutEvent

This event is sent by wxLayoutAlgorithm to calculate the amount of the remaining client area that the window should occupy.

Derived from

wxEvent
wxObject

Include files

<wx/laywin.h>

Event table macros

EVT_CALCULATE_LAYOUT(func) | Process a wxEVT_CALCULATE_LAYOUT event, which asks the window to take a 'bite' out of a rectangle provided by the algorithm.

See also

wxQueryLayoutInfoEvent, wxSashLayoutWindow, wxLayoutAlgorithm.

Members

wxCalculateLayoutEvent::wxCalculateLayoutEvent
wxCalculateLayoutEvent::GetFlags
wxCalculateLayoutEvent::GetRect
wxCalculateLayoutEvent::SetFlags
wxCalculateLayoutEvent::SetRect

### wxCalculateLayoutEvent::wxCalculateLayoutEvent

wxCalculateLayoutEvent(wxWindowID id = 0)

Constructor.

### wxCalculateLayoutEvent::GetFlags

int GetFlags() const

Returns the flags associated with this event. Not currently used.

### wxCalculateLayoutEvent::GetRect

wxRect GetRect() const

Before the event handler is entered, returns the remaining parent client area that the window could occupy. When the event handler returns, this should contain the remaining parent client rectangle, after the event handler has subtracted the area that its window occupies.

### wxCalculateLayoutEvent::SetFlags

void SetFlags(int flags)

Sets the flags associated with this event. Not currently used.

### wxCalculateLayoutEvent::SetRect

void SetRect(const wxRect& rect)

Call this to specify the new remaining parent client area, after the space occupied by the window has been subtracted.