2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali/integration-api/scene-holder.h>
22 #include <dali/public-api/actors/layer.h>
23 #include <dali/integration-api/scene-holder-impl.h>
31 SceneHolder::SceneHolder()
35 SceneHolder::~SceneHolder()
39 SceneHolder::SceneHolder( const SceneHolder& handle )
44 SceneHolder::SceneHolder( Internal::Adaptor::SceneHolder* internal )
45 : BaseHandle(internal)
49 SceneHolder& SceneHolder::operator=( const SceneHolder& rhs )
51 BaseHandle::operator=(rhs);
55 void SceneHolder::Add( Actor actor )
57 GetImplementation(*this).Add( actor );
60 void SceneHolder::Remove( Actor actor )
62 GetImplementation(*this).Remove( actor );
65 Layer SceneHolder::GetRootLayer() const
67 return GetImplementation(*this).GetRootLayer();
70 void SceneHolder::SetBackgroundColor( Vector4 color )
72 GetImplementation(*this).SetBackgroundColor( color );
75 Vector4 SceneHolder::GetBackgroundColor() const
77 return GetImplementation(*this).GetBackgroundColor();
80 void SceneHolder::FeedTouchPoint( Dali::TouchPoint& point, int timeStamp )
82 GetImplementation(*this).FeedTouchPoint( point, timeStamp );
85 void SceneHolder::FeedWheelEvent( Dali::WheelEvent& wheelEvent )
87 GetImplementation(*this).FeedWheelEvent( wheelEvent );
90 void SceneHolder::FeedKeyEvent( Dali::KeyEvent& keyEvent )
92 GetImplementation(*this).FeedKeyEvent( keyEvent );