The SizerItem class is used to track the position, size and other attributes of each item managed by a Sizer. In normal usage user code should never need to deal directly with a SizerItem, but derived sizer classes will.
SizerItem.new(Integer width, Integer height,
Integer proportion, Integer flag,
Integer border,
Object userData)
Construct a sizer item for tracking a spacer.
SizerItem.new(Window window, SizerFlags flags)
SizerItem.new(Window window, Integer proportion,
Integer flag,
Integer border,
Object userData)
Construct a sizer item for tracking a window.
SizerItem.new(Sizer window, SizerFlags flags)
SizerItem.new(Sizer sizer, Integer proportion,
Integer flag,
Integer border,
Object userData)
Construct a sizer item for tracking a subsizer.
destructor()
Deletes the user data and subsizer, if any.
Size calc_min()
Calculates the minimum desired size for the item, including any space needed by borders.
delete_windows()
Destroy the window or the windows in a subsizer, depending on the type of item.
detach_sizer()
Enable deleting the SizerItem without destroying the contained sizer.
Integer get_border()
Return the border attribute.
Integer get_flag()
Return the flags attribute.
Size get_min_size()
Get the minimum size needed for the item.
Point get_position()
What is the current position of the item, as set in the last Layout.
Integer get_proportion()
Get the proportion item attribute.
float get_ratio()
Get the ration item attribute.
Rect get_rect()
Get the rectangle of the item on the parent window, excluding borders.
Size get_size()
Get the current size of the item, as set in the last Layout.
Sizer get_sizer()
If this item is tracking a sizer, return it. NULL otherwise.
Size get_spacer()
If this item is tracking a spacer, return its size.
Object get_user_data()
Get the userData item attribute.
Window get_window()
If this item is tracking a window then return it. NULL otherwise.
Boolean is_shown()
Is this item shown?
Boolean is_sizer()
Is this item a sizer?
Boolean is_spacer()
Is this item a spacer?
Boolean is_window()
Is this item a window?
set_border(Integer border)
Set the border item attribute.
set_dimension(Point pos, Size size)
Set the position and size of the space allocated to the sizer, and adjust the position and size of the item to be within that space taking alignment and borders into account.
set_flag(Integer flag)
Set the flag item attribute.
set_init_size(Integer x, Integer y)
set_proportion(Integer proportion)
Set the proportion item attribute.
set_ratio(Integer width, Integer height)
set_ratio(Size size)
set_ratio(Float ratio)
Set the ratio item attribute.
set_sizer(Sizer sizer)
Set the sizer tracked by this item.
set_spacer(Size size)
Set the size of the spacer tracked by this item.
set_window(Window window)
Set the window to be tracked by thsi item.
show(Boolean show)
Set the show item attribute, which sizers use to determine if the item is to be made part of the layout or not. If the item is tracking a window then it is shown or hidden as needed.
[This page automatically generated from the Textile source at Thu Aug 28 20:29:17 +0100 2008]