Version: 3.1.1
wxGridBagSizer Class Reference

#include <wx/gbsizer.h>

+ Inheritance diagram for wxGridBagSizer:

Detailed Description

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, and items can optionally span more than one row and/or column using wxGBSpan.

Library:  wxCore
Category:  Window Layout

Public Member Functions

 wxGridBagSizer (int vgap=0, int hgap=0)
 Constructor, with optional parameters to specify the gap between the rows and columns. More...
 
wxSize CalcMin ()
 Called when the managed size of the sizer is needed or when layout needs done. More...
 
wxGBSizerItemFindItemAtPoint (const wxPoint &pt)
 Return the sizer item located at the point given in pt, or NULL if there is no item at that point. More...
 
wxGBSizerItemFindItemAtPosition (const wxGBPosition &pos)
 Return the sizer item for the given grid cell, or NULL if there is no item at that position. More...
 
wxGBSizerItemFindItemWithData (const wxObject *userData)
 Return the sizer item that has a matching user data (it only compares pointer values) or NULL if not found. More...
 
wxSize GetCellSize (int row, int col) const
 Get the size of the specified cell, including hgap and vgap. More...
 
wxSize GetEmptyCellSize () const
 Get the size used for cells in the grid with no item. More...
 
void RecalcSizes ()
 Called when the managed size of the sizer is needed or when layout needs done. More...
 
void SetEmptyCellSize (const wxSize &sz)
 Set the size used for cells in the grid with no item. More...
 
wxSizerItemAdd (wxWindow *window, const wxGBPosition &pos, const wxGBSpan &span=wxDefaultSpan, int flag=0, int border=0, wxObject *userData=NULL)
 Adds the given item to the given position. More...
 
wxSizerItemAdd (wxSizer *sizer, const wxGBPosition &pos, const wxGBSpan &span=wxDefaultSpan, int flag=0, int border=0, wxObject *userData=NULL)
 Adds the given item to the given position. More...
 
wxSizerItemAdd (wxGBSizerItem *item)
 Adds the given item to the given position. More...
 
wxSizerItemAdd (int width, int height, const wxGBPosition &pos, const wxGBSpan &span=wxDefaultSpan, int flag=0, int border=0, wxObject *userData=NULL)
 Adds a spacer to the given position. More...
 
bool CheckForIntersection (wxGBSizerItem *item, wxGBSizerItem *excludeItem=NULL)
 Look at all items and see if any intersect (or would overlap) the given item. More...
 
bool CheckForIntersection (const wxGBPosition &pos, const wxGBSpan &span, wxGBSizerItem *excludeItem=NULL)
 Look at all items and see if any intersect (or would overlap) the given item. More...
 
wxGBSizerItemFindItem (wxWindow *window)
 Find the sizer item for the given window or subsizer, returns NULL if not found. More...
 
wxGBSizerItemFindItem (wxSizer *sizer)
 Find the sizer item for the given window or subsizer, returns NULL if not found. More...
 
wxGBPosition GetItemPosition (wxWindow *window)
 Get the grid position of the specified item. More...
 
wxGBPosition GetItemPosition (wxSizer *sizer)
 Get the grid position of the specified item. More...
 
wxGBPosition GetItemPosition (size_t index)
 Get the grid position of the specified item. More...
 
wxGBSpan GetItemSpan (wxWindow *window)
 Get the row/col spanning of the specified item. More...
 
wxGBSpan GetItemSpan (wxSizer *sizer)
 Get the row/col spanning of the specified item. More...
 
wxGBSpan GetItemSpan (size_t index)
 Get the row/col spanning of the specified item. More...
 
bool SetItemPosition (wxWindow *window, const wxGBPosition &pos)
 Set the grid position of the specified item. More...
 
bool SetItemPosition (wxSizer *sizer, const wxGBPosition &pos)
 Set the grid position of the specified item. More...
 
bool SetItemPosition (size_t index, const wxGBPosition &pos)
 Set the grid position of the specified item. More...
 
bool SetItemSpan (wxWindow *window, const wxGBSpan &span)
 Set the row/col spanning of the specified item. More...
 
bool SetItemSpan (wxSizer *sizer, const wxGBSpan &span)
 Set the row/col spanning of the specified item. More...
 
bool SetItemSpan (size_t index, const wxGBSpan &span)
 Set the row/col spanning of the specified item. More...
 
- Public Member Functions inherited from wxFlexGridSizer
void AddGrowableCol (size_t idx, int proportion=0)
 Specifies that column idx (starting from zero) should be grown if there is extra space available to the sizer. More...
 
void AddGrowableRow (size_t idx, int proportion=0)
 Specifies that row idx (starting from zero) should be grown if there is extra space available to the sizer. More...
 
int GetFlexibleDirection () const
 Returns a wxOrientation value that specifies whether the sizer flexibly resizes its columns, rows, or both (default). More...
 
wxFlexSizerGrowMode GetNonFlexibleGrowMode () const
 Returns the value that specifies how the sizer grows in the "non-flexible" direction if there is one. More...
 
bool IsColGrowable (size_t idx)
 Returns true if column idx is growable. More...
 
bool IsRowGrowable (size_t idx)
 Returns true if row idx is growable. More...
 
void RemoveGrowableCol (size_t idx)
 Specifies that the idx column index is no longer growable. More...
 
void RemoveGrowableRow (size_t idx)
 Specifies that the idx row index is no longer growable. More...
 
void SetFlexibleDirection (int direction)
 Specifies whether the sizer should flexibly resize its columns, rows, or both. More...
 
void SetNonFlexibleGrowMode (wxFlexSizerGrowMode mode)
 Specifies how the sizer should grow in the non-flexible direction if there is one (so SetFlexibleDirection() must have been called previously). More...
 
const wxArrayIntGetRowHeights () const
 Returns a read-only array containing the heights of the rows in the sizer. More...
 
const wxArrayIntGetColWidths () const
 Returns a read-only array containing the widths of the columns in the sizer. More...
 
 wxFlexGridSizer (int cols, int vgap, int hgap)
 wxFlexGridSizer constructors. More...
 
 wxFlexGridSizer (int cols, const wxSize &gap=wxSize(0, 0))
 wxFlexGridSizer constructors. More...
 
 wxFlexGridSizer (int rows, int cols, int vgap, int hgap)
 wxFlexGridSizer constructors. More...
 
 wxFlexGridSizer (int rows, int cols, const wxSize &gap)
 wxFlexGridSizer constructors. More...
 
- Public Member Functions inherited from wxGridSizer
int GetCols () const
 Returns the number of columns that has been specified for the sizer. More...
 
int GetRows () const
 Returns the number of rows that has been specified for the sizer. More...
 
int GetEffectiveColsCount () const
 Returns the number of columns currently used by the sizer. More...
 
int GetEffectiveRowsCount () const
 Returns the number of rows currently used by the sizer. More...
 
int GetHGap () const
 Returns the horizontal gap (in pixels) between cells in the sizer. More...
 
int GetVGap () const
 Returns the vertical gap (in pixels) between the cells in the sizer. More...
 
void SetCols (int cols)
 Sets the number of columns in the sizer. More...
 
void SetHGap (int gap)
 Sets the horizontal gap (in pixels) between cells in the sizer. More...
 
void SetRows (int rows)
 Sets the number of rows in the sizer. More...
 
void SetVGap (int gap)
 Sets the vertical gap (in pixels) between the cells in the sizer. More...
 
 wxGridSizer (int cols, int vgap, int hgap)
 wxGridSizer constructors. More...
 
 wxGridSizer (int cols, const wxSize &gap=wxSize(0, 0))
 wxGridSizer constructors. More...
 
 wxGridSizer (int rows, int cols, int vgap, int hgap)
 wxGridSizer constructors. More...
 
 wxGridSizer (int rows, int cols, const wxSize &gap)
 wxGridSizer constructors. More...
 
- Public Member Functions inherited from wxSizer
 wxSizer ()
 The constructor. More...
 
virtual ~wxSizer ()
 The destructor. More...
 
wxSizerItemAdd (wxWindow *window, const wxSizerFlags &flags)
 Appends a child to the sizer. More...
 
wxSizerItemAdd (wxWindow *window, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Appends a child to the sizer. More...
 
wxSizerItemAdd (wxSizer *sizer, const wxSizerFlags &flags)
 Appends a child to the sizer. More...
 
wxSizerItemAdd (wxSizer *sizer, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Appends a child to the sizer. More...
 
wxSizerItemAdd (int width, int height, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Appends a spacer child to the sizer. More...
 
wxSizerItemAdd (int width, int height, const wxSizerFlags &flags)
 Appends a spacer child to the sizer. More...
 
wxSizerItemAdd (wxSizerItem *item)
 
virtual wxSizerItemAddSpacer (int size)
 This base function adds non-stretchable space to both the horizontal and vertical orientation of the sizer. More...
 
wxSizerItemAddStretchSpacer (int prop=1)
 Adds stretchable space to the sizer. More...
 
virtual void Clear (bool delete_windows=false)
 Detaches all children from the sizer. More...
 
wxSize ComputeFittingClientSize (wxWindow *window)
 Computes client area size for window so that it matches the sizer's minimal size. More...
 
wxSize ComputeFittingWindowSize (wxWindow *window)
 Like ComputeFittingClientSize(), but converts the result into window size. More...
 
virtual bool Detach (wxWindow *window)
 Detach the child window from the sizer without destroying it. More...
 
virtual bool Detach (wxSizer *sizer)
 Detach the child sizer from the sizer without destroying it. More...
 
virtual bool Detach (int index)
 Detach a item at position index from the sizer without destroying it. More...
 
wxSize Fit (wxWindow *window)
 Tell the sizer to resize the window so that its client area matches the sizer's minimal size (ComputeFittingClientSize() is called to determine it). More...
 
void FitInside (wxWindow *window)
 Tell the sizer to resize the virtual size of the window to match the sizer's minimal size. More...
 
virtual bool InformFirstDirection (int direction, int size, int availableOtherDir)
 Inform sizer about the first direction that has been decided (by parent item). More...
 
wxWindowGetContainingWindow () const
 Returns the window this sizer is used in or NULL if none. More...
 
void SetContainingWindow (wxWindow *window)
 Set the window this sizer is used in. More...
 
size_t GetItemCount () const
 Returns the number of items in the sizer. More...
 
wxSizerItemGetItem (wxWindow *window, bool recursive=false)
 Finds wxSizerItem which holds the given window. More...
 
wxSizerItemGetItem (wxSizer *sizer, bool recursive=false)
 Finds wxSizerItem which holds the given sizer. More...
 
wxSizerItemGetItem (size_t index)
 Finds wxSizerItem which is located in the sizer at position index. More...
 
wxSizerItemGetItemById (int id, bool recursive=false)
 Finds item of the sizer which has the given id. More...
 
wxSize GetMinSize ()
 Returns the minimal size of the sizer. More...
 
wxPoint GetPosition () const
 Returns the current position of the sizer. More...
 
wxSize GetSize () const
 Returns the current size of the sizer. More...
 
bool Hide (wxWindow *window, bool recursive=false)
 Hides the child window. More...
 
bool Hide (wxSizer *sizer, bool recursive=false)
 Hides the child sizer. More...
 
bool Hide (size_t index)
 Hides the item at position index. More...
 
wxSizerItemInsert (size_t index, wxWindow *window, const wxSizerFlags &flags)
 Insert a child into the sizer before any existing item at index. More...
 
wxSizerItemInsert (size_t index, wxWindow *window, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Insert a child into the sizer before any existing item at index. More...
 
wxSizerItemInsert (size_t index, wxSizer *sizer, const wxSizerFlags &flags)
 Insert a child into the sizer before any existing item at index. More...
 
wxSizerItemInsert (size_t index, wxSizer *sizer, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Insert a child into the sizer before any existing item at index. More...
 
wxSizerItemInsert (size_t index, int width, int height, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Insert a child into the sizer before any existing item at index. More...
 
wxSizerItemInsert (size_t index, int width, int height, const wxSizerFlags &flags)
 Insert a child into the sizer before any existing item at index. More...
 
wxSizerItemInsert (size_t index, wxSizerItem *item)
 
wxSizerItemInsertSpacer (size_t index, int size)
 Inserts non-stretchable space to the sizer. More...
 
wxSizerItemInsertStretchSpacer (size_t index, int prop=1)
 Inserts stretchable space to the sizer. More...
 
bool IsEmpty () const
 Return true if the sizer has no elements. More...
 
bool IsShown (wxWindow *window) const
 Returns true if the window is shown. More...
 
bool IsShown (wxSizer *sizer) const
 Returns true if the sizer is shown. More...
 
bool IsShown (size_t index) const
 Returns true if the item at index is shown. More...
 
virtual void Layout ()
 Call this to force layout of the children anew, e.g. after having added a child to or removed a child (window, other sizer or space) from the sizer while keeping the current dimension. More...
 
wxSizerItemPrepend (wxWindow *window, const wxSizerFlags &flags)
 Same as Add(), but prepends the items to the beginning of the list of items (windows, subsizers or spaces) owned by this sizer. More...
 
wxSizerItemPrepend (wxWindow *window, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Same as Add(), but prepends the items to the beginning of the list of items (windows, subsizers or spaces) owned by this sizer. More...
 
wxSizerItemPrepend (wxSizer *sizer, const wxSizerFlags &flags)
 Same as Add(), but prepends the items to the beginning of the list of items (windows, subsizers or spaces) owned by this sizer. More...
 
wxSizerItemPrepend (wxSizer *sizer, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Same as Add(), but prepends the items to the beginning of the list of items (windows, subsizers or spaces) owned by this sizer. More...
 
wxSizerItemPrepend (int width, int height, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
 Same as Add(), but prepends the items to the beginning of the list of items (windows, subsizers or spaces) owned by this sizer. More...
 
wxSizerItemPrepend (int width, int height, const wxSizerFlags &flags)
 Same as Add(), but prepends the items to the beginning of the list of items (windows, subsizers or spaces) owned by this sizer. More...
 
wxSizerItemPrepend (wxSizerItem *item)
 
wxSizerItemPrependSpacer (int size)
 Prepends non-stretchable space to the sizer. More...
 
wxSizerItemPrependStretchSpacer (int prop=1)
 Prepends stretchable space to the sizer. More...
 
virtual bool Remove (wxWindow *window)
 Removes a child window from the sizer, but does not destroy it (because windows are owned by their parent window, not the sizer). More...
 
virtual bool Remove (wxSizer *sizer)
 Removes a sizer child from the sizer and destroys it. More...
 
virtual bool Remove (int index)
 Removes a child from the sizer and destroys it if it is a sizer or a spacer, but not if it is a window (because windows are owned by their parent window, not the sizer). More...
 
virtual bool Replace (wxWindow *oldwin, wxWindow *newwin, bool recursive=false)
 Detaches the given oldwin from the sizer and replaces it with the given newwin. More...
 
virtual bool Replace (wxSizer *oldsz, wxSizer *newsz, bool recursive=false)
 Detaches the given oldsz from the sizer and replaces it with the given newsz. More...
 
virtual bool Replace (size_t index, wxSizerItem *newitem)
 Detaches the given item at position index from the sizer and replaces it with the given wxSizerItem newitem. More...
 
void SetDimension (int x, int y, int width, int height)
 Call this to force the sizer to take the given dimension and thus force the items owned by the sizer to resize themselves according to the rules defined by the parameter in the Add() and Prepend() methods. More...
 
void SetDimension (const wxPoint &pos, const wxSize &size)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void SetMinSize (const wxSize &size)
 Call this to give the sizer a minimal size. More...
 
void SetMinSize (int width, int height)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void SetSizeHints (wxWindow *window)
 This method first calls Fit() and then wxTopLevelWindow::SetSizeHints() on the window passed to it. More...
 
void SetVirtualSizeHints (wxWindow *window)
 Tell the sizer to set the minimal size of the window virtual area to match the sizer's minimal size. More...
 
bool Show (wxWindow *window, bool show=true, bool recursive=false)
 Shows or hides the window. More...
 
bool Show (wxSizer *sizer, bool show=true, bool recursive=false)
 Shows or hides sizer. More...
 
bool Show (size_t index, bool show=true)
 Shows the item at index. More...
 
virtual void ShowItems (bool show)
 Show or hide all items managed by the sizer. More...
 
wxSizerItemList & GetChildren ()
 Returns the list of the items in this sizer. More...
 
const wxSizerItemList & GetChildren () const
 Returns the list of the items in this sizer. More...
 
bool SetItemMinSize (wxWindow *window, int width, int height)
 Set an item's minimum size by window, sizer, or position. More...
 
bool SetItemMinSize (wxWindow *window, const wxSize &size)
 Set an item's minimum size by window, sizer, or position. More...
 
bool SetItemMinSize (wxSizer *sizer, int width, int height)
 Set an item's minimum size by window, sizer, or position. More...
 
bool SetItemMinSize (wxSizer *sizer, const wxSize &size)
 Set an item's minimum size by window, sizer, or position. More...
 
bool SetItemMinSize (size_t index, int width, int height)
 Set an item's minimum size by window, sizer, or position. More...
 
bool SetItemMinSize (size_t index, const wxSize &size)
 Set an item's minimum size by window, sizer, or position. More...
 
- Public Member Functions inherited from wxObject
 wxObject ()
 Default ctor; initializes to NULL the internal reference data. More...
 
 wxObject (const wxObject &other)
 Copy ctor. More...
 
virtual ~wxObject ()
 Destructor. More...
 
virtual wxClassInfoGetClassInfo () const
 This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...
 
wxObjectRefDataGetRefData () const
 Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...
 
bool IsKindOf (const wxClassInfo *info) const
 Determines whether this class is a subclass of (or the same class as) the given class. More...
 
bool IsSameAs (const wxObject &obj) const
 Returns true if this object has the same data pointer as obj. More...
 
void Ref (const wxObject &clone)
 Makes this object refer to the data in clone. More...
 
void SetRefData (wxObjectRefData *data)
 Sets the wxObject::m_refData pointer. More...
 
void UnRef ()
 Decrements the reference count in the associated data, and if it is zero, deletes the data. More...
 
void UnShare ()
 This is the same of AllocExclusive() but this method is public. More...
 
void operator delete (void *buf)
 The delete operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined. More...
 
void * operator new (size_t size, const wxString &filename=NULL, int lineNum=0)
 The new operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined. More...
 

Additional Inherited Members

- Protected Member Functions inherited from wxObject
void AllocExclusive ()
 Ensure that this object's data is not shared with any other object. More...
 
virtual wxObjectRefDataCreateRefData () const
 Creates a new instance of the wxObjectRefData-derived class specific to this object and returns it. More...
 
virtual wxObjectRefDataCloneRefData (const wxObjectRefData *data) const
 Creates a new instance of the wxObjectRefData-derived class specific to this object and initializes it copying data. More...
 
- Protected Attributes inherited from wxObject
wxObjectRefDatam_refData
 Pointer to an object which is the object's reference-counted data. More...
 

Constructor & Destructor Documentation

wxGridBagSizer::wxGridBagSizer ( int  vgap = 0,
int  hgap = 0 
)

Constructor, with optional parameters to specify the gap between the rows and columns.

Member Function Documentation

wxSizerItem* wxGridBagSizer::Add ( wxWindow window,
const wxGBPosition pos,
const wxGBSpan span = wxDefaultSpan,
int  flag = 0,
int  border = 0,
wxObject userData = NULL 
)

Adds the given item to the given position.

Returns
A valid pointer if the item was successfully placed at the given position, or NULL if something was already there.
wxSizerItem* wxGridBagSizer::Add ( wxSizer sizer,
const wxGBPosition pos,
const wxGBSpan span = wxDefaultSpan,
int  flag = 0,
int  border = 0,
wxObject userData = NULL 
)

Adds the given item to the given position.

Returns
A valid pointer if the item was successfully placed at the given position, or NULL if something was already there.
wxSizerItem* wxGridBagSizer::Add ( wxGBSizerItem item)

Adds the given item to the given position.

Returns
A valid pointer if the item was successfully placed at the given position, or NULL if something was already there.
wxSizerItem* wxGridBagSizer::Add ( int  width,
int  height,
const wxGBPosition pos,
const wxGBSpan span = wxDefaultSpan,
int  flag = 0,
int  border = 0,
wxObject userData = NULL 
)

Adds a spacer to the given position.

width and height specify the dimension of the spacer to be added.

Returns
A valid pointer if the spacer was successfully placed at the given position, or NULL if something was already there.
wxSize wxGridBagSizer::CalcMin ( )
virtual

Called when the managed size of the sizer is needed or when layout needs done.

Reimplemented from wxFlexGridSizer.

bool wxGridBagSizer::CheckForIntersection ( wxGBSizerItem item,
wxGBSizerItem excludeItem = NULL 
)

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.

bool wxGridBagSizer::CheckForIntersection ( const wxGBPosition pos,
const wxGBSpan span,
wxGBSizerItem excludeItem = NULL 
)

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.

wxGBSizerItem* wxGridBagSizer::FindItem ( wxWindow window)

Find the sizer item for the given window or subsizer, returns NULL if not found.

(non-recursive)

wxGBSizerItem* wxGridBagSizer::FindItem ( wxSizer sizer)

Find the sizer item for the given window or subsizer, returns NULL if not found.

(non-recursive)

wxGBSizerItem* wxGridBagSizer::FindItemAtPoint ( const wxPoint pt)

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)

wxGBSizerItem* wxGridBagSizer::FindItemAtPosition ( const wxGBPosition pos)

Return the sizer item for the given grid cell, or NULL if there is no item at that position.

(non-recursive)

wxGBSizerItem* wxGridBagSizer::FindItemWithData ( const wxObject userData)

Return the sizer item that has a matching user data (it only compares pointer values) or NULL if not found.

(non-recursive)

wxSize wxGridBagSizer::GetCellSize ( int  row,
int  col 
) const

Get the size of the specified cell, including hgap and vgap.

Only valid after window layout has been performed.

wxSize wxGridBagSizer::GetEmptyCellSize ( ) const

Get the size used for cells in the grid with no item.

wxGBPosition wxGridBagSizer::GetItemPosition ( wxWindow window)

Get the grid position of the specified item.

wxGBPosition wxGridBagSizer::GetItemPosition ( wxSizer sizer)

Get the grid position of the specified item.

wxGBPosition wxGridBagSizer::GetItemPosition ( size_t  index)

Get the grid position of the specified item.

wxGBSpan wxGridBagSizer::GetItemSpan ( wxWindow window)

Get the row/col spanning of the specified item.

wxGBSpan wxGridBagSizer::GetItemSpan ( wxSizer sizer)

Get the row/col spanning of the specified item.

wxGBSpan wxGridBagSizer::GetItemSpan ( size_t  index)

Get the row/col spanning of the specified item.

void wxGridBagSizer::RecalcSizes ( )
virtual

Called when the managed size of the sizer is needed or when layout needs done.

Reimplemented from wxFlexGridSizer.

void wxGridBagSizer::SetEmptyCellSize ( const wxSize sz)

Set the size used for cells in the grid with no item.

bool wxGridBagSizer::SetItemPosition ( wxWindow window,
const wxGBPosition pos 
)

Set the grid position of the specified item.

Returns true on success. If the move is not allowed (because an item is already there) then false is returned.

bool wxGridBagSizer::SetItemPosition ( wxSizer sizer,
const wxGBPosition pos 
)

Set the grid position of the specified item.

Returns true on success. If the move is not allowed (because an item is already there) then false is returned.

bool wxGridBagSizer::SetItemPosition ( size_t  index,
const wxGBPosition pos 
)

Set the grid position of the specified item.

Returns true on success. If the move is not allowed (because an item is already there) then false is returned.

bool wxGridBagSizer::SetItemSpan ( wxWindow window,
const wxGBSpan span 
)

Set the row/col spanning of the specified item.

Returns true on success. If the move is not allowed (because an item is already there) then false is returned.

bool wxGridBagSizer::SetItemSpan ( wxSizer sizer,
const wxGBSpan span 
)

Set the row/col spanning of the specified item.

Returns true on success. If the move is not allowed (because an item is already there) then false is returned.

bool wxGridBagSizer::SetItemSpan ( size_t  index,
const wxGBSpan span 
)

Set the row/col spanning of the specified item.

Returns true on success. If the move is not allowed (because an item is already there) then false is returned.