JavaScript binding for ItemView
[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 ActorApi
32 {
33
34   /**
35    * constructor
36    */
37   Actor New( const v8::FunctionCallbackInfo< v8::Value >& args );
38
39   /**
40    * Actor API. See actor.h for description of functions
41    */
42   void IsRoot( const v8::FunctionCallbackInfo< v8::Value >& args );
43   void GetId( const v8::FunctionCallbackInfo< v8::Value >& args);
44   void OnStage( const v8::FunctionCallbackInfo< v8::Value >& args );
45   void IsLayer( const v8::FunctionCallbackInfo< v8::Value >& args );
46   void GetLayer( const v8::FunctionCallbackInfo< v8::Value >& args);
47   void AddActor( const v8::FunctionCallbackInfo< v8::Value >& args);
48   void RemoveActor( const v8::FunctionCallbackInfo< v8::Value >& args);
49   void IsEqualTo( const v8::FunctionCallbackInfo<v8::Value>& args );
50   void Unparent( const v8::FunctionCallbackInfo< v8::Value >& args);
51   void GetChildAt( const v8::FunctionCallbackInfo< v8::Value >& args);
52   void FindChildByName( const v8::FunctionCallbackInfo< v8::Value >& args);
53   void FindChildById( const v8::FunctionCallbackInfo< v8::Value >& args);
54   void GetParent( const v8::FunctionCallbackInfo< v8::Value >& args );
55   void GetChildCount( const v8::FunctionCallbackInfo< v8::Value >& args );
56   void ScreenToLocal( const v8::FunctionCallbackInfo< v8::Value >& args );
57   void SetKeyboardFocusable( const v8::FunctionCallbackInfo< v8::Value >& args );
58   void IsKeyboardFocusable( const v8::FunctionCallbackInfo< v8::Value >& args );
59   void GetNaturalSize( const v8::FunctionCallbackInfo< v8::Value >& args );
60   void GetWidthForHeight( const v8::FunctionCallbackInfo<v8::Value>& args );
61   void GetHeightForWidth( const v8::FunctionCallbackInfo<v8::Value>& args );
62   void TranslateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
63   void RotateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
64   void ScaleBy( const v8::FunctionCallbackInfo< v8::Value >& args );
65   void AddRenderer( const v8::FunctionCallbackInfo< v8::Value >& args );
66   void GetRendererCount( const v8::FunctionCallbackInfo< v8::Value >& args );
67   void GetRendererAt( const v8::FunctionCallbackInfo< v8::Value >& args );
68   void RemoveRenderer( const v8::FunctionCallbackInfo< v8::Value >& args );
69
70   // new function just for JavaScript API, to help developers know what type of actor
71   // they're dealing with, returns actor name as a string
72   void GetActorType( const v8::FunctionCallbackInfo< v8::Value >& args );
73
74
75 }; // namespace ActorApi
76
77 } // namespace V8Plugin
78
79 } // namespace Dali
80
81 #endif // header __DALI_V8PLUGIN_ACTOR_API_H__