PathConstrainer changes in JS Plugin + LinearConstrainer
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / src / actors / actor-api.h
1 #ifndef __DALI_V8PLUGIN_ACTOR_API_H__
2 #define __DALI_V8PLUGIN_ACTOR_API_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <v8.h>
23 #include <dali/public-api/actors/actor.h>
24
25 namespace Dali
26 {
27
28 namespace V8Plugin
29 {
30
31 namespace TextLabelApi
32 {
33   /**
34    * Temporary TextView constructor
35    */
36   Actor New( const v8::FunctionCallbackInfo< v8::Value >& args );
37 }
38
39 namespace ActorApi
40 {
41
42   /**
43    * constructor
44    */
45   Actor New( const v8::FunctionCallbackInfo< v8::Value >& args );
46
47   /**
48    * Actor API. See actor.h for description of functions
49    */
50   void IsRoot( const v8::FunctionCallbackInfo< v8::Value >& args );
51   void GetId( const v8::FunctionCallbackInfo< v8::Value >& args);
52   void OnStage( const v8::FunctionCallbackInfo< v8::Value >& args );
53   void IsLayer( const v8::FunctionCallbackInfo< v8::Value >& args );
54   void GetLayer( const v8::FunctionCallbackInfo< v8::Value >& args);
55   void AddActor( const v8::FunctionCallbackInfo< v8::Value >& args);
56   void RemoveActor( const v8::FunctionCallbackInfo< v8::Value >& args);
57   void IsEqualTo( const v8::FunctionCallbackInfo<v8::Value>& args );
58   void Unparent( const v8::FunctionCallbackInfo< v8::Value >& args);
59   void GetChildAt( const v8::FunctionCallbackInfo< v8::Value >& args);
60   void FindChildByName( const v8::FunctionCallbackInfo< v8::Value >& args);
61   void FindChildById( const v8::FunctionCallbackInfo< v8::Value >& args);
62   void GetParent( const v8::FunctionCallbackInfo< v8::Value >& args );
63   void GetChildCount( const v8::FunctionCallbackInfo< v8::Value >& args );
64   void ScreenToLocal( const v8::FunctionCallbackInfo< v8::Value >& args );
65   void SetKeyboardFocusable( const v8::FunctionCallbackInfo< v8::Value >& args );
66   void IsKeyboardFocusable( const v8::FunctionCallbackInfo< v8::Value >& args );
67   void TranslateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
68   void RotateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
69   void ScaleBy( const v8::FunctionCallbackInfo< v8::Value >& args );
70
71   // new function just for JavaScript API, to help developers know what type of actor
72   // they're dealing with, returns actor name as a string
73   void GetActorType( const v8::FunctionCallbackInfo< v8::Value >& args );
74
75
76 }; // namespace ActorApi
77
78 } // namespace V8Plugin
79
80 } // namespace Dali
81
82 #endif // header __DALI_V8PLUGIN_ACTOR_API_H__