The GBSizerItem class is used by the GridBagSizer for tracking the items in the sizer. It adds grid position and spanning information to the normal SizerItem by adding GBPosition and GBSpan attrbibutes. Most of the time you will not need to use a GBSizerItem directly in your code, but there are a couple of cases where it is handy.
GBSizerItem.new(Integer width, Integer height,
GBPosition pos, GBSpan span,
Integer flag,
Integer border,
Object userData)
Construct a sizer item for tracking a spacer.
GBSizerItem.new(Window window, GBPosition pos, GBSpan span,
Integer flag,
Integer border,
Object userData)
Construct a sizer item for tracking a window.
GBSizerItem.new(Sizer sizer, GBPosition pos, GBSpan span,
Integer flag,
Integer border,
Object userData)
Construct a sizer item for tracking a subsizer.
get_end_pos(Integer row, Integer col)
Get the row and column of the endpoint of this item
GBPosition get_pos()
get_pos(Integer row, Integer col)
Get the grid position of the item.
GBSpan get_span()
get_span(Integer rowspan, Integer colspan)
Get the row and column spanning of the item.
Boolean intersects(GBSizerItem other)
Returns true if this item and the other item instersect
Boolean intersects(GBPosition pos, GBSpan span)
Returns true if the given pos/span would intersect with this item.
Boolean set_pos(GBPosition pos)
If the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one at the new position, then set the new position. Returns true if the change is successful and after the next Layout the item will be moved.
Boolean set_span(GBSpan span)
If the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one with its new spanning size, then set the new spanning. Returns true if the change is successful and after the next Layout the item will be resized.
[This page automatically generated from the Textile source at Fri Oct 31 16:06:42 +0000 2008]