wx.CalculateLayoutEvent

Inheritance diagram for wx.CalculateLayoutEvent:



Description

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

Derived From

Event Handling

Event Name Description
wx.EVT_CALCULATE_LAYOUT(func) Process a wx.wxEVT_CALCULATE_LAYOUT event, which asks the window to take a ‘bite’ out of a rectangle provided by the algorithm.

Properties Summary

Class API

Methods

__init__(id=0)

Constructor.

Parameters:

  • id (int)

Returns:

wx.CalculateLayoutEvent


GetFlags()

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


Returns:

int


GetRect()

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.


Returns:

wx.Rect


SetFlags(flags)

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

Parameters:

  • flags (int)

SetRect(rect)

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

Parameters:


Properties

Flags
See GetFlags and SetFlags
Rect
See GetRect and SetRect