-#ifndef __DALI_V8PLUGIN_PATH_CONSTRAINT_WRAPPER_H__
-#define __DALI_V8PLUGIN_PATH_CONSTRAINT_WRAPPER_H__
+#ifndef __DALI_V8PLUGIN_PATH_CONSTRAINER_WRAPPER_H__
+#define __DALI_V8PLUGIN_PATH_CONSTRAINER_WRAPPER_H__
/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*/
// EXTERNAL INCLUDES
+#include <dali/public-api/animation/path-constrainer.h>
#include <v8.h>
-#include <dali/public-api/animation/path-constraint.h>
// INTERNAL INCLUDES
#include <object/handle-wrapper.h>
{
/**
- * Wraps a Path.
+ * Wraps a PathConstrainer.
*/
-class PathConstraintWrapper : public HandleWrapper
+class PathConstrainerWrapper : public HandleWrapper
{
public:
/**
* Constructor
*/
- PathConstraintWrapper( PathConstraint pathConstraint, GarbageCollectorInterface& gc );
+ PathConstrainerWrapper( PathConstrainer pathConstrainer, GarbageCollectorInterface& gc );
/**
* Virtual destructor
*/
- virtual ~PathConstraintWrapper(){};
+ virtual ~PathConstrainerWrapper(){};
/**
- * Creates a new PathConstraint wrapped inside a Javascript Object.
+ * Creates a new PathConstrainer wrapped inside a Javascript Object.
* @param[in] args v8 function call arguments interpreted
*/
- static void NewPathConstraint( const v8::FunctionCallbackInfo< v8::Value >& args);
+ static void NewPathConstrainer( const v8::FunctionCallbackInfo< v8::Value >& args);
/**
- * Wraps a PathConstraint inside a Javascript object
+ * Wraps a PathConstrainer inside a Javascript object
*/
- static v8::Handle<v8::Object> WrapPathConstraint(v8::Isolate* isolate, PathConstraint pathConstraint );
+ static v8::Handle<v8::Object> WrapPathConstrainer(v8::Isolate* isolate, PathConstrainer pathConstrainer );
/*
- * Get the wrapped PathConstraint
+ * Get the wrapped PathConstrainer
*/
- PathConstraint GetPathConstraint();
+ PathConstrainer GetPathConstrainer();
private:
/**
- * Create a v8 object template for the PathConstraint
+ * Create a v8 object template for the PathConstrainer
*/
- static v8::Handle<v8::ObjectTemplate> MakePathConstraintTemplate( v8::Isolate* isolate );
+ static v8::Handle<v8::ObjectTemplate> MakePathConstrainerTemplate( v8::Isolate* isolate );
- PathConstraint mPathConstraint;
+ Dali::PathConstrainer mPathConstrainer;
};
} // namespace V8Plugin