#include #include #include #include #include #include using namespace gd; /** * \brief An adapter to implement a gd::Behavior in JavaScript. * * This is the class to be used to define a new behavior in JsExtension.js */ class BehaviorJsImplementation : public gd::Behavior { public: BehaviorJsImplementation(){}; virtual std::unique_ptr Clone() const override; virtual std::map GetProperties( const gd::SerializerElement& behaviorContent) const override; virtual bool UpdateProperty(gd::SerializerElement& behaviorContent, const gd::String& name, const gd::String& value) override; virtual void InitializeContent( gd::SerializerElement& behaviorContent) override; void __destroy__(); private: };