Dali 3D User Interface Engine
window.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17 
18 // CLASS HEADER
19 #include <window.h>
20 
21 // INTERNAL INCLUDES
22 #include <window-impl.h>
23 #include <orientation-impl.h>
24 
25 namespace Dali
26 {
27 
28 Window Window::New(PositionSize posSize, const std::string& name, bool isTransparent)
29 {
30  Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, "", isTransparent);
31  return Window(window);
32 }
33 
34 Window Window::New(PositionSize posSize, const std::string& name, const std::string& className, bool isTransparent)
35 {
36  Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, className, isTransparent);
37  return Window(window);
38 }
39 
41 {
42 }
43 
45 {
46 }
47 
48 Window::Window(const Window& handle)
49 : BaseHandle(handle)
50 {
51 }
52 
54 {
56  return *this;
57 }
58 
60 {
61  GetImplementation(*this).ShowIndicator( visibleMode );
62 }
63 
65 {
66  return GetImplementation(*this).IndicatorVisibilityChangedSignal();
67 }
68 
70 {
71  GetImplementation(*this).SetIndicatorBgOpacity( opacity );
72 }
73 
75 {
76  GetImplementation(*this).RotateIndicator( orientation );
77 }
78 
79 void Window::SetClass( std::string name, std::string klass )
80 {
81  GetImplementation(*this).SetClass( name, klass );
82 }
83 
85 {
86  GetImplementation(*this).Raise();
87 }
88 
90 {
91  GetImplementation(*this).Lower();
92 }
93 
95 {
96  GetImplementation(*this).Activate();
97 }
98 
100 {
101  GetImplementation(*this).AddAvailableOrientation( orientation );
102 }
103 
105 {
106  GetImplementation(*this).RemoveAvailableOrientation( orientation );
107 }
108 
110 {
111  GetImplementation(*this).SetPreferredOrientation( orientation );
112 }
113 
115 {
116  return GetImplementation(*this).GetPreferredOrientation();
117 }
118 
119 DragAndDropDetector Window::GetDragAndDropDetector() const
120 {
121  return GetImplementation(*this).GetDragAndDropDetector();
122 }
123 
125 {
126  return GetImplementation(*this).GetNativeHandle();
127 }
128 
130 : BaseHandle( window )
131 {
132 }
133 
134 } // namespace Dali
Dali Docs Home
Read more about Dali