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/public-api/actors/actor.h>
20 #include <dali/public-api/actors/layer.h>
21 #include <dali/public-api/common/stage.h>
22 #include <dali/public-api/object/base-object.h>
25 #include "toolkit-window.h"
32 /********************************************************************************
33 * Stub for Dali::Internal::Adaptor::Window
34 ********************************************************************************/
41 class Window : public Dali::BaseObject
53 static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent)
58 static Dali::Window Get( Dali::Actor actor )
60 return Dali::Window();
75 Dali::Window Window::New( PositionSize windowPosition, const std::string& name, bool isTransparent )
77 Internal::Adaptor::Window* window = Internal::Adaptor::Window::New( windowPosition, name, "", isTransparent );
78 return Window( window );
81 Dali::Window Window::New(PositionSize windowPosition, const std::string& name, const std::string& className, bool isTransparent )
83 Internal::Adaptor::Window* window = Internal::Adaptor::Window::New( windowPosition, name, className, isTransparent );
84 return Window( window );
87 Dali::Layer Window::GetRootLayer() const
89 return Dali::Stage::GetCurrent().GetRootLayer();
92 Window::Window( Internal::Adaptor::Window* window )
93 : BaseHandle( window )
100 Window Get( Actor actor )
102 return Internal::Adaptor::Window::Get( actor );
105 KeyEventSignalType& KeyEventSignal( Window window )
107 return Dali::Stage::GetCurrent().KeyEventSignal();
110 TouchSignalType& TouchSignal( Window window )
112 return Dali::Stage::GetCurrent().TouchSignal();
115 } // namespace DevelWindow