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.
18 #include <dali/integration-api/adaptors/scene-holder.h>
20 #include <dali/public-api/actors/actor.h>
21 #include <dali/public-api/actors/layer.h>
22 #include <dali/public-api/common/stage.h>
23 #include <dali/public-api/object/base-object.h>
34 class SceneHolder: public Dali::BaseObject
46 SceneHolder::SceneHolder()
50 SceneHolder::~SceneHolder()
54 SceneHolder::SceneHolder( const SceneHolder& handle )
59 SceneHolder::SceneHolder( Internal::Adaptor::SceneHolder* internal )
60 : BaseHandle(internal)
64 SceneHolder& SceneHolder::operator=( const SceneHolder& rhs )
66 BaseHandle::operator=(rhs);
70 void SceneHolder::Add( Actor actor )
74 void SceneHolder::Remove( Actor actor )
78 Layer SceneHolder::GetRootLayer() const
80 return Dali::Stage::GetCurrent().GetRootLayer();
83 void SceneHolder::SetBackgroundColor( Vector4 color )
87 Vector4 SceneHolder::GetBackgroundColor() const
89 return Dali::Stage::GetCurrent().GetBackgroundColor();
92 void SceneHolder::FeedTouchPoint( Dali::TouchPoint& point, int timeStamp )
96 void SceneHolder::FeedWheelEvent( Dali::WheelEvent& wheelEvent )
100 void SceneHolder::FeedKeyEvent( Dali::KeyEvent& keyEvent )