contents up previous next

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.