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.
^^
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. ^^
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. |
See |
|
See |
|
See |
|
wx.adv.
QueryLayoutInfoEvent
(Event)¶Possible constructors:
QueryLayoutInfoEvent(id=0)
This event is sent when LayoutAlgorithm wishes to get the size, orientation and alignment of a window.
__init__
(self, id=0)¶Constructor.
id (wx.WindowID) –
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
.
GetFlags
(self)¶Returns the flags associated with this event.
Not currently used.
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
.
GetRequestedLength
(self)¶Returns the requested length of the window in the direction of the window orientation.
This information is not yet used.
int
GetSize
(self)¶Returns the size that the event handler specified to the event object as being the requested size of the window.
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
.
alignment (LayoutAlignment) –
SetFlags
(self, flags)¶Sets the flags associated with this event.
Not currently used.
flags (int) –
SetOrientation
(self, orientation)¶Call this to specify the orientation of the window.
May be one of wx.adv.LAYOUT_HORIZONTAL
, wx.adv.LAYOUT_VERTICAL
.
orientation (LayoutOrientation) –
SetRequestedLength
(self, length)¶Sets the requested length of the window in the direction of the window orientation.
This information is not yet used.
length (int) –
SetSize
(self, size)¶Call this to let the calling code know what the size of the window is.
size (wx.Size) –
Alignment
¶See GetAlignment
and SetAlignment
Orientation
¶See GetOrientation
and SetOrientation
RequestedLength
¶See GetRequestedLength
and SetRequestedLength