Wt: Wt::WPoint Class Reference

Wt 4.10.4

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Wt::WPoint Class Reference

A value class that defines a 2D point with integer coordinates. More...

`#include <Wt/WPoint.h>`

## Public Member Functions
| WPoint ()
| Creates a point (0, 0).
| WPoint (int x, int y)
| Creates a point (x, y).
void | setX (int x)
| Sets the X coordinate.
void | setY (int y)
| Sets the Y coordinate.
int | x () const
| Returns the X coordinate.
int | y () const
| Returns the Y coordinate.
bool | operator== (const WPoint &other) const
| Comparison operator.
bool | operator!= (const WPoint &other) const
| Comparison operator.

## Detailed Description

A value class that defines a 2D point with integer coordinates.

See also
  WPolygonArea