Phoenix Logo

phoenix_title 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 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 Class Hierarchy

Inheritance diagram for class CalculateLayoutEvent:


method_summary Methods Summary

__init__ Constructor.
GetFlags Returns the flags associated with this event.
GetRect Before the event handler is entered, returns the remaining parent client area that the window could occupy.
SetFlags Sets the flags associated with this event.
SetRect Call this to specify the new remaining parent client area, after the space occupied by the window has been subtracted.

property_summary Properties Summary

Flags See GetFlags and SetFlags
Rect See GetRect and SetRect

api Class API



class wx.adv.CalculateLayoutEvent(Event)

Possible constructors:

CalculateLayoutEvent(id=0)

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) –


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:Rect


SetFlags(self, flags)

Sets the flags associated with this event.

Not currently used.

Parameters:flags (int) –


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) –

Properties



Flags

See GetFlags and SetFlags



Rect

See GetRect and SetRect