| 
    Wt
    4.0.0
    
   | 
 
A value class that defines a 2D point. More...
#include <Wt/WPointF.h>

Public Member Functions | |
| WPointF () | |
| Creates point (0, 0).  | |
| WPointF (double x, double y) | |
| Creates a point (x, y).  | |
| WPointF (const WPointF &other) | |
| Copy constructor.  | |
| WPointF (const Coordinates &other) | |
| Creates a point from mouse coordinates.  | |
| void | setX (double x) | 
| Sets the X coordinate.  More... | |
| void | setY (double y) | 
| Sets the Y coordinate.  More... | |
| double | x () const | 
| Returns the X coordinate.  | |
| double | y () const | 
| Returns the Y coordinate.  | |
| bool | operator== (const WPointF &other) const | 
| Comparison operator.  | |
| bool | operator!= (const WPointF &other) const | 
| Comparison operator.  | |
| virtual std::string | jsValue () const override | 
| Returns a JavaScript representation of the value of this object.  More... | |
  Public Member Functions inherited from Wt::WJavaScriptExposableObject | |
| bool | isJavaScriptBound () const | 
| Returns whether this object is JavaScript bound.  More... | |
| std::string | jsRef () const | 
| Returns a JavaScript reference to this object.  More... | |
A value class that defines a 2D point.
A WPointF is JavaScript exposable. If a WPointF is JavaScript bound, it can be accessed in your custom JavaScript code through its handle's jsRef(). A point is represented in JavaScript as an array of two elements, e.g. a point WPointF(10,20) will be represented in JavaScript as:
      
  | 
  overridevirtual | 
Returns a JavaScript representation of the value of this object.
Implements Wt::WJavaScriptExposableObject.
| void Wt::WPointF::setX | ( | double | x | ) | 
Sets the X coordinate.
| WException | if the point is JavaScript bound | 
| void Wt::WPointF::setY | ( | double | y | ) | 
Sets the Y coordinate.
| WException | if the point is JavaScript bound | 
 1.8.11