Wt  4.0.2
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

Generated on Fri Nov 24 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11