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.
Construct a sizer item for tracking a spacer.
GBSizerItem.new(%(arg-type)Window% window, GBPosition pos, GBSpan span, Integer flag, Integer border, Object userData)Construct a sizer item for tracking a window.
GBSizerItem.new(%(arg-type)Sizer% sizer, GBPosition pos, GBSpan span, Integer flag, Integer border, Object userData)Construct a sizer item for tracking a subsizer.
Get the row and column of the endpoint of this item
Get the grid position of the item.
Get the row and column spanning of the item.
Returns true if this item and the other item instersect
Boolean intersects(%(arg-type)GBPosition% pos, GBSpan span)Returns true if the given pos/span would intersect with this item.
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.
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 2023-06-03 08:07:32 +0000]