| 
    Wt
    3.7.1
    
   | 
 
A JavaScript exposable object. More...
#include <Wt/WJavaScriptExposableObject>

Public Member Functions | |
| bool | isJavaScriptBound () const | 
| Returns whether this object is JavaScript bound.  More... | |
| virtual std::string | jsValue () const =0 | 
| Returns a JavaScript representation of the value of this object.  More... | |
| std::string | jsRef () const | 
| Returns a JavaScript reference to this object.  More... | |
A JavaScript exposable object.
A JavaScript bound object (as opposed to being mostly a simple value class) has an equivalent representation in JavaScript. Its value can usually only be modified through a WJavaScriptHandle. There are certain exceptions to this rule. Some methods, notably many WTransform methods, will correctly apply these modifications also on the JavaScript representation.
| bool Wt::WJavaScriptExposableObject::isJavaScriptBound | ( | ) | const | 
Returns whether this object is JavaScript bound.
An object is JavaScript bound if it is associated with a WJavaScriptHandle. It should not be modified directly on the server side. WJavaScriptHandle::setValue() should be used instead.
| std::string Wt::WJavaScriptExposableObject::jsRef | ( | ) | const | 
Returns a JavaScript reference to this object.
If this object is not JavaScript bound, it will return a JavaScript representation of the value of the object, according to jsValue().
      
  | 
  pure virtual | 
Returns a JavaScript representation of the value of this object.
Implemented in Wt::WPainterPath, Wt::WTransform, Wt::WRectF, Wt::WPen, Wt::WBrush, and Wt::WPointF.
 1.8.13