Merge "Remove CXX03 Build & old Tizen Version Builds" into devel/master
[platform/core/uifw/dali-adaptor.git] / dali / integration-api / scene-holder.cpp
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/integration-api/scene-holder.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/public-api/actors/layer.h>
23 #include <dali/integration-api/scene-holder-impl.h>
24
25 namespace Dali
26 {
27
28 namespace Integration
29 {
30
31 SceneHolder::SceneHolder()
32 {
33 }
34
35 SceneHolder::~SceneHolder()
36 {
37 }
38
39 SceneHolder::SceneHolder( const SceneHolder& handle )
40 :BaseHandle(handle)
41 {
42 }
43
44 SceneHolder::SceneHolder( Internal::Adaptor::SceneHolder* internal )
45 : BaseHandle(internal)
46 {
47 }
48
49 SceneHolder& SceneHolder::operator=( const SceneHolder& rhs )
50 {
51   BaseHandle::operator=(rhs);
52   return *this;
53 }
54
55 void SceneHolder::Add( Actor actor )
56 {
57   GetImplementation(*this).Add( actor );
58 }
59
60 void SceneHolder::Remove( Actor actor )
61 {
62   GetImplementation(*this).Remove( actor );
63 }
64
65 Layer SceneHolder::GetRootLayer() const
66 {
67   return GetImplementation(*this).GetRootLayer();
68 }
69
70 void SceneHolder::SetBackgroundColor( Vector4 color )
71 {
72   GetImplementation(*this).SetBackgroundColor( color );
73 }
74
75 Vector4 SceneHolder::GetBackgroundColor() const
76 {
77   return GetImplementation(*this).GetBackgroundColor();
78 }
79
80 void SceneHolder::FeedTouchPoint( Dali::TouchPoint& point, int timeStamp )
81 {
82   GetImplementation(*this).FeedTouchPoint( point, timeStamp );
83 }
84
85 void SceneHolder::FeedWheelEvent( Dali::WheelEvent& wheelEvent )
86 {
87   GetImplementation(*this).FeedWheelEvent( wheelEvent );
88 }
89
90 void SceneHolder::FeedKeyEvent( Dali::KeyEvent& keyEvent )
91 {
92   GetImplementation(*this).FeedKeyEvent( keyEvent );
93 }
94
95 }// Integration
96
97 } // Dali