## wxGBPosition

This class represents the position of an item in a virtual grid of rows and columns managed by a wxGridBagSizer.

Derived from

No base class

Include files

<wx/gbsizer.h>

Members

wxGBPosition::wxGBPosition
wxGBPosition::GetCol
wxGBPosition::GetRow
wxGBPosition::SetCol
wxGBPosition::SetRow
wxGBPosition::operator!
wxGBPosition::operator==

### wxGBPosition::wxGBPosition

wxGBPosition()

wxGBPosition(int row, int col)

Construct a new wxGBPosition, optionally setting the row and column. The default is (0,0).

### wxGBPosition::GetCol

int GetCol() const

Get the current column value.

### wxGBPosition::GetRow

int GetRow() const

Get the current row value.

### wxGBPosition::SetCol

void SetCol(int col)

Set a new column value.

### wxGBPosition::SetRow

void SetRow(int row)

Set a new row value.

### wxGBPosition::operator!

bool operator!(const wxGBPosition& p) const

Is the wxGBPosition valid? (An invalid wxGBPosition is (-1,-1). )

### wxGBPosition::operator==

bool operator operator==(const wxGBPosition& p) const

Compare equality of two wxGBPositions.