Wt: Wt::WPoint Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::WPoint Class Reference

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

`#include <Wt/WPoint>`

List of all members.

## 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

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator