wx.adv.QueryLayoutInfoEvent¶
This event is sent when wx.adv.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.adv.LayoutAlgorithm.
Events Emitted by this Class¶
Handlers bound for the following event types will receive a wx.adv.QueryLayoutInfoEvent parameter.
EVT_QUERY_LAYOUT_INFO: Process a
wxEVT_QUERY_LAYOUT_INFO
event, to get size, orientation and alignment from a window.
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Specifies the alignment of the window (which side of the remaining parent client area the window sticks to). |
|
Returns the flags associated with this event. |
|
Returns the orientation that the event handler specified to the event object. |
|
Returns the requested length of the window in the direction of the window orientation. |
|
Returns the size that the event handler specified to the event object as being the requested size of the window. |
|
Call this to specify the alignment of the window (which side of the remaining parent client area the window sticks to). |
|
Sets the flags associated with this event. |
|
Call this to specify the orientation of the window. |
|
Sets the requested length of the window in the direction of the window orientation. |
|
Call this to let the calling code know what the size of the window is. |
Properties Summary¶
See |
|
See |
|
See |
|
Class API¶
- class wx.adv.QueryLayoutInfoEvent(Event)¶
Possible constructors:
QueryLayoutInfoEvent(id=0) -> None
This event is sent when LayoutAlgorithm wishes to get the size, orientation and alignment of a window.
Methods¶
- __init__(self, id=0)¶
Constructor.
- Parameters:
id (wx.WindowID)
- Return type:
None
- GetAlignment(self)¶
Specifies the alignment of the window (which side of the remaining parent client area the window sticks to).
One of
wx.adv.LAYOUT_TOP
,wx.adv.LAYOUT_LEFT
,wx.adv.LAYOUT_RIGHT
,wx.adv.LAYOUT_BOTTOM
.- Return type:
- GetFlags(self)¶
Returns the flags associated with this event.
Not currently used.
- Return type:
int
- GetOrientation(self)¶
Returns the orientation that the event handler specified to the event object.
May be one of
wx.adv.LAYOUT_HORIZONTAL
,wx.adv.LAYOUT_VERTICAL
.- Return type:
- GetRequestedLength(self)¶
Returns the requested length of the window in the direction of the window orientation.
This information is not yet used.
- Return type:
int
- GetSize(self)¶
Returns the size that the event handler specified to the event object as being the requested size of the window.
- Return type:
- SetAlignment(self, alignment)¶
Call this to specify the alignment of the window (which side of the remaining parent client area the window sticks to).
May be one of
wx.adv.LAYOUT_TOP
,wx.adv.LAYOUT_LEFT
,wx.adv.LAYOUT_RIGHT
,wx.adv.LAYOUT_BOTTOM
.- Parameters:
alignment (LayoutAlignment)
- Return type:
None
- SetFlags(self, flags)¶
Sets the flags associated with this event.
Not currently used.
- Parameters:
flags (int)
- Return type:
None
- SetOrientation(self, orientation)¶
Call this to specify the orientation of the window.
May be one of
wx.adv.LAYOUT_HORIZONTAL
,wx.adv.LAYOUT_VERTICAL
.- Parameters:
orientation (LayoutOrientation)
- Return type:
None
- SetRequestedLength(self, length)¶
Sets the requested length of the window in the direction of the window orientation.
This information is not yet used.
- Parameters:
length (int)
- Return type:
None
- SetSize(self, size)¶
Call this to let the calling code know what the size of the window is.
- Parameters:
size (wx.Size)
- Return type:
None
Properties¶
- Alignment¶
See
GetAlignment
andSetAlignment
- Orientation¶
See
GetOrientation
andSetOrientation
- RequestedLength¶
See
GetRequestedLength
andSetRequestedLength