2 * Copyright (c) 2017 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.
22 #include <window-impl.h>
23 #include <orientation-impl.h>
28 Window Window::New(PositionSize posSize, const std::string& name, bool isTransparent)
30 Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, "", isTransparent);
31 return Window(window);
34 Window Window::New(PositionSize posSize, const std::string& name, const std::string& className, bool isTransparent)
36 Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, className, isTransparent);
37 return Window(window);
48 Window::Window(const Window& handle)
53 Window& Window::operator=(const Window& rhs)
55 BaseHandle::operator=(rhs);
59 void Window::ShowIndicator( IndicatorVisibleMode visibleMode )
61 GetImplementation(*this).ShowIndicator( visibleMode );
64 Window::IndicatorSignalType& Window::IndicatorVisibilityChangedSignal()
66 return GetImplementation(*this).IndicatorVisibilityChangedSignal();
69 void Window::SetIndicatorBgOpacity( IndicatorBgOpacity opacity )
71 GetImplementation(*this).SetIndicatorBgOpacity( opacity );
74 void Window::RotateIndicator( WindowOrientation orientation )
76 GetImplementation(*this).RotateIndicator( orientation );
79 void Window::SetClass( std::string name, std::string klass )
81 GetImplementation(*this).SetClass( name, klass );
86 GetImplementation(*this).Raise();
91 GetImplementation(*this).Lower();
94 void Window::Activate()
96 GetImplementation(*this).Activate();
99 void Window::AddAvailableOrientation( WindowOrientation orientation )
101 GetImplementation(*this).AddAvailableOrientation( orientation );
104 void Window::RemoveAvailableOrientation( WindowOrientation orientation )
106 GetImplementation(*this).RemoveAvailableOrientation( orientation );
109 void Window::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
111 GetImplementation(*this).SetPreferredOrientation( orientation );
114 Dali::Window::WindowOrientation Window::GetPreferredOrientation()
116 return GetImplementation(*this).GetPreferredOrientation();
119 DragAndDropDetector Window::GetDragAndDropDetector() const
121 return GetImplementation(*this).GetDragAndDropDetector();
124 Any Window::GetNativeHandle() const
126 return GetImplementation(*this).GetNativeHandle();
129 Window::Window( Internal::Adaptor::Window* window )
130 : BaseHandle( window )