This event is sent when 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 LayoutAlgorithm.
| evt_query_layout_info() { | event | ... } | Process a EVT_QUERY_LAYOUT_INFO event,to get size, orientation and alignment from a window. |
enum LayoutOrientation {
LAYOUT_HORIZONTAL,
LAYOUT_VERTICAL
};
enum LayoutAlignment {
LAYOUT_NONE,
LAYOUT_TOP,
LAYOUT_LEFT,
LAYOUT_RIGHT,
LAYOUT_BOTTOM,
};
CalculateLayoutEvent, SashLayoutWindow, LayoutAlgorithm.
QueryLayoutInfoEvent.new(Integer id = 0)
Constructor.
get_alignment()
Specifies the alignment of the window (which side of the remaining parent client area the window sticks to). One of LAYOUT_TOP, LAYOUT_LEFT, LAYOUT_RIGHT, LAYOUT_BOTTOM.
Integer get_flags()
Returns the flags associated with this event. Not currently used.
LayoutOrientation get_orientation()
Returns the orientation that the event handler specified to the event object. May be one of LAYOUT_HORIZONTAL, LAYOUT_VERTICAL.
Integer get_requested_length()
Returns the requested length of the window in the direction of the window orientation. This information is not yet used.
Size get_size()
Returns the size that the event handler specified to the event object as being the requested size of the window.
set_alignment(LayoutAlignment 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 LAYOUT_TOP, LAYOUT_LEFT, LAYOUT_RIGHT, LAYOUT_BOTTOM.
set_flags(Integer flags)
Sets the flags associated with this event. Not currently used.
set_orientation(LayoutOrientation orientation)
Call this to specify the orientation of the window. May be one of LAYOUT_HORIZONTAL, LAYOUT_VERTICAL.
set_requested_length(Integer length)
Sets the requested length of the window in the direction of the window orientation. This information is not yet used.
set_size(Size size)
Call this to let the calling code know what the size of the window is.
[This page automatically generated from the Textile source at Thu May 01 00:50:42 +0100 2008]