1 #ifndef __DALI_V8PLUGIN_ACTOR_API_H__
2 #define __DALI_V8PLUGIN_ACTOR_API_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 #include <dali/public-api/actors/actor.h>
31 namespace TextLabelApi
34 * Temporary TextView constructor
36 Actor New( const v8::FunctionCallbackInfo< v8::Value >& args );
45 Actor New( const v8::FunctionCallbackInfo< v8::Value >& args );
48 * Actor API. See actor.h for description of functions
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 GetNaturalSize( const v8::FunctionCallbackInfo< v8::Value >& args );
68 void GetWidthForHeight( const v8::FunctionCallbackInfo<v8::Value>& args );
69 void GetHeightForWidth( const v8::FunctionCallbackInfo<v8::Value>& args );
70 void TranslateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
71 void RotateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
72 void ScaleBy( const v8::FunctionCallbackInfo< v8::Value >& args );
73 void AddRenderer( const v8::FunctionCallbackInfo< v8::Value >& args );
74 void GetRendererCount( const v8::FunctionCallbackInfo< v8::Value >& args );
75 void GetRendererAt( const v8::FunctionCallbackInfo< v8::Value >& args );
76 void RemoveRenderer( const v8::FunctionCallbackInfo< v8::Value >& args );
78 // new function just for JavaScript API, to help developers know what type of actor
79 // they're dealing with, returns actor name as a string
80 void GetActorType( const v8::FunctionCallbackInfo< v8::Value >& args );
83 }; // namespace ActorApi
85 } // namespace V8Plugin
89 #endif // header __DALI_V8PLUGIN_ACTOR_API_H__