wx.QueryLayoutInfoEvent

Inheritance diagram for wx.QueryLayoutInfoEvent:



Description

This event is sent when wx.LayoutAlgorithm wishes to get the size, orientation and alignment of a window. More precisely, the event is sent by the OnCalculateLayout handler which is itself invoked by wx.LayoutAlgorithm.

Derived From

Event Handling

Event Name Description
wx.EVT_QUERY_LAYOUT_INFO(func) Process a wx.wxEVT_QUERY_LAYOUT_INFO event, to get size, orientation and alignment from a window.

Class API

Methods

__init__(id=0)

Constructor.

Parameters:

  • id (int)

Returns:

wx.QueryLayoutInfoEvent


GetAlignment()

Specifies the alignment of the window (which side of the remaining parent client area the window sticks to).

One of wx.LAYOUT_TOP, wx.LAYOUT_LEFT, wx.LAYOUT_RIGHT, wx.LAYOUT_BOTTOM.


Returns:

int


GetFlags()

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


Returns:

int


GetOrientation()

Returns the orientation that the event handler specified to the event object. May be one of wx.LAYOUT_HORIZONTAL, wx.LAYOUT_VERTICAL.


Returns:

int


GetRequestedLength()

Returns the requested length of the window in the direction of the window orientation. This information is not yet used.


Returns:

int


GetSize()

Returns the size that the event handler specified to the event object as being the requested size of the window.


Returns:

wx.Size


SetAlignment(alignment)

Call this to specify the alignment of the window (which side of the remaining parent client area the window sticks to).

Parameters:

  • alignment (int): One of wx.LAYOUT_TOP, wx.LAYOUT_LEFT, wx.LAYOUT_RIGHT, wx.LAYOUT_BOTTOM.

SetFlags(flags)

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

Parameters:

  • flags (int)

SetOrientation(orientation)

Call this to specify the orientation of the window.

Parameters:

  • orientation (int): May be one of wx.LAYOUT_HORIZONTAL, wx.LAYOUT_VERTICAL.

SetRequestedLength(length)

Sets the requested length of the window in the direction of the window orientation. This information is not yet used.

Parameters:

  • length (int)

SetSize(size)

Call this to let the calling code know what the size of the window is.

Parameters:


Properties

Alignment
See GetAlignment and SetAlignment
Flags
See GetFlags and SetFlags
Orientation
See GetOrientation and SetOrientation
RequestedLength
See GetRequestedLength and SetRequestedLength
Size
See GetSize and SetSize