## wxPoint

A wxPoint is a useful data structure for graphics operations. It simply contains integer x and y members.

See also wxRealPoint for a floating point version.

Derived from

None

Include files

<wx/gdicmn.h>

See also

wxRealPoint

Members

wxPoint::wxPoint
wxPoint::x
wxPoint::y
Operators

### wxPoint::wxPoint

wxPoint()

wxPoint(int x, int y)

Create a point.

### wxPoint::x

int x

x member.

### wxPoint::y

int y

y member.

### Operators

void operator =(const wxPoint& pt)

Assignment operator.

bool operator ==(const wxPoint& pt)

bool operator !=(const wxPoint& pt)

wxPoint operator +(const wxPoint& pt)

wxPoint operator -(const wxPoint& pt)

wxPoint& operator +=(const wxPoint& pt)

wxPoint& operator -=(const wxPoint& pt)

Operators for comparison, sum and subtraction between wxPoint objects.

wxPoint operator +(const wxSize& sz)

wxPoint operator -(const wxSize& sz)

wxPoint& operator +=(const wxSize& sz)

wxPoint& operator -=(const wxSize& sz) Operators for sum and subtraction between a wxPoint object and a wxSize object.