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>
37 Actor New( const v8::FunctionCallbackInfo< v8::Value >& args );
40 * Actor API. See actor.h for description of functions
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 GetRelayoutSize( const v8::FunctionCallbackInfo< v8::Value >& args );
61 void GetWidthForHeight( const v8::FunctionCallbackInfo<v8::Value>& args );
62 void GetHeightForWidth( const v8::FunctionCallbackInfo<v8::Value>& args );
63 void TranslateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
64 void RotateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
65 void ScaleBy( const v8::FunctionCallbackInfo< v8::Value >& args );
66 void AddRenderer( const v8::FunctionCallbackInfo< v8::Value >& args );
67 void GetRendererCount( const v8::FunctionCallbackInfo< v8::Value >& args );
68 void GetRendererAt( const v8::FunctionCallbackInfo< v8::Value >& args );
69 void RemoveRenderer( const v8::FunctionCallbackInfo< v8::Value >& args );
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 );
76 }; // namespace ActorApi
78 } // namespace V8Plugin
82 #endif // header __DALI_V8PLUGIN_ACTOR_API_H__