Update toolkit-window to add/remove actors in the correct Scene
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / toolkit-window-impl.h
1 #ifndef TOOLKIT_WINDOW_IMPL_H
2 #define TOOLKIT_WINDOW_IMPL_H
3
4 /*
5  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <string>
23 #include <dali/integration-api/adaptors/scene-holder.h>
24
25 // INTERNAL INCLUDES
26 #include <toolkit-window.h>
27 #include <toolkit-scene-holder-impl.h>
28
29 namespace Dali
30 {
31
32 typedef Dali::Rect<int> PositionSize;
33
34 namespace Internal
35 {
36
37 namespace Adaptor
38 {
39
40 class Window : public SceneHolder
41 {
42 public:
43
44   Window( const PositionSize& positionSize );
45   virtual ~Window() = default;
46   static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent);
47 };
48
49 } // namespace Adaptor
50
51 } // namespace Internal
52
53 } // namespace Dali
54
55
56 #endif // TOOLKIT_WINDOW_IMPL_H