wxGridBagSizer(3erl) | Erlang Module Definition | wxGridBagSizer(3erl) |
wxGridBagSizer - Functions for wxGridBagSizer class
A wxSizer that can lay out items in a virtual grid like a wxFlexGridSizer but in this case explicit positioning of the items is allowed using wxGBPosition (not implemented in wx), and items can optionally span more than one row and/or column using wxGBSpan (not implemented in wx).
This class is derived (and can use functions) from: wxFlexGridSizer wxGridSizer wxSizer
wxWidgets docs: wxGridBagSizer
wxGridBagSizer() = wx:wx_object()
new() -> wxGridBagSizer()
new(Options :: [Option]) -> wxGridBagSizer()
Types:
Constructor, with optional parameters to specify the gap between the rows and columns.
add(This, Item) -> wxSizerItem:wxSizerItem()
Types:
add(This, Window, Pos) -> wxSizerItem:wxSizerItem()
Types:
add(This, Width, Height, Pos) -> wxSizerItem:wxSizerItem()
add(This, Window, Pos, Pos :: [Option]) ->
wxSizerItem:wxSizerItem()
Types:
Adds the given item to the given position.
Return: A valid pointer if the item was successfully placed at the given position, or NULL if something was already there.
add(This, Width, Height, Pos, Options :: [Option]) ->
wxSizerItem:wxSizerItem()
Types:
Adds a spacer to the given position.
width and height specify the dimension of the spacer to be added.
Return: A valid pointer if the spacer was successfully placed at the given position, or NULL if something was already there.
calcMin(This) -> {W :: integer(), H :: integer()}
Types:
Called when the managed size of the sizer is needed or when layout needs done.
checkForIntersection(This, Item) -> boolean()
Types:
checkForIntersection(This, Pos, Span) -> boolean()
checkForIntersection(This, Item, Span :: [Option]) -> boolean()
Types:
Look at all items and see if any intersect (or would overlap) the given item.
Returns true if so, false if there would be no overlap. If an excludeItem is given then it will not be checked for intersection, for example it may be the item we are checking the position of.
checkForIntersection(This, Pos, Span, Options :: [Option]) ->
boolean()
Types:
findItem(This, Window) -> wxGBSizerItem:wxGBSizerItem()
Types:
Find the sizer item for the given window or subsizer, returns NULL if not found.
(non-recursive)
findItemAtPoint(This, Pt) -> wxGBSizerItem:wxGBSizerItem()
Types:
Return the sizer item located at the point given in pt, or NULL if there is no item at that point.
The (x,y) coordinates in pt correspond to the client coordinates of the window using the sizer for layout. (non-recursive)
findItemAtPosition(This, Pos) -> wxGBSizerItem:wxGBSizerItem()
Types:
Return the sizer item for the given grid cell, or NULL if there is no item at that position.
(non-recursive)
findItemWithData(This, UserData) -> wxGBSizerItem:wxGBSizerItem()
Types:
Return the sizer item that has a matching user data (it only compares pointer values) or NULL if not found.
(non-recursive)
getCellSize(This, Row, Col) -> {W :: integer(), H :: integer()}
Types:
Get the size of the specified cell, including hgap and vgap.
Only valid after window layout has been performed.
getEmptyCellSize(This) -> {W :: integer(), H :: integer()}
Types:
Get the size used for cells in the grid with no item.
getItemPosition(This, Window) -> {R :: integer(), C :: integer()}
getItemPosition(This, Index) -> {R :: integer(), C :: integer()}
Types:
getItemSpan(This, Window) -> {RS :: integer(), CS :: integer()}
getItemSpan(This, Index) -> {RS :: integer(), CS :: integer()}
Types:
setEmptyCellSize(This, Sz) -> ok
Types:
Set the size used for cells in the grid with no item.
setItemPosition(This, Window, Pos) -> boolean()
setItemPosition(This, Index, Pos) -> boolean()
Types:
setItemSpan(This, Window, Span) -> boolean()
setItemSpan(This, Index, Span) -> boolean()
Types:
destroy(This :: wxGridBagSizer()) -> ok
Destroys the object.
wx 2.2.1 | wxWidgets team. |