wx.adv.CalculateLayoutEvent¶
This event is sent by wx.adv.LayoutAlgorithm to calculate the amount of the remaining client area that the window should occupy.
Events Emitted by this Class¶
Handlers bound for the following event types will receive a wx.adv.CalculateLayoutEvent parameter.
EVT_CALCULATE_LAYOUT: Process a
wxEVT_CALCULATE_LAYOUT
event, which asks the window to take a ‘bite’ out of a rectangle provided by the algorithm.
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Returns the flags associated with this event. |
|
Before the event handler is entered, returns the remaining parent client area that the window could occupy. |
|
Sets the flags associated with this event. |
|
Call this to specify the new remaining parent client area, after the space occupied by the window has been subtracted. |
Properties Summary¶
Class API¶
- class wx.adv.CalculateLayoutEvent(Event)¶
Possible constructors:
CalculateLayoutEvent(id=0) -> None
This event is sent by LayoutAlgorithm to calculate the amount of the remaining client area that the window should occupy.
Methods¶
- __init__(self, id=0)¶
Constructor.
- Parameters:
id (wx.WindowID)
- Return type:
None
- GetFlags(self)¶
Returns the flags associated with this event.
Not currently used.
- Return type:
int
- GetRect(self)¶
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.
- Return type:
- SetFlags(self, flags)¶
Sets the flags associated with this event.
Not currently used.
- Parameters:
flags (int)
- Return type:
None
- SetRect(self, rect)¶
Call this to specify the new remaining parent client area, after the space occupied by the window has been subtracted.
- Parameters:
rect (wx.Rect)
- Return type:
None
Properties¶