dc7a206c9e8a1711f83598e266597c47631a8aa7
[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/adaptor-framework/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 using PositionSize   = Dali::Rect<int>;
33 using WindowPosition = Uint16Pair;
34
35 namespace Internal
36 {
37
38 namespace Adaptor
39 {
40
41 class Window : public SceneHolder
42 {
43 public:
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   WindowPosition           GetPosition() const;
49   PositionSize             GetPositionSize() const;
50   Dali::Window::WindowSize GetSize() const;
51
52   void SetPositionSize(PositionSize positionSize);
53
54   FocusChangeSignalType mFocusChangeSignal;
55   ResizeSignalType      mResizeSignal;
56   int                   mRotationAngle;
57   DevelWindow::VisibilityChangedSignalType mVisibilityChangedSignal;
58 };
59
60 } // namespace Adaptor
61
62 } // namespace Internal
63
64 } // namespace Dali
65
66
67 #endif // TOOLKIT_WINDOW_IMPL_H