2 * Copyright (c) 2015 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);
42 Window::Window(const Window& handle)
47 Window& Window::operator=(const Window& rhs)
49 BaseHandle::operator=(rhs);
53 void Window::ShowIndicator( IndicatorVisibleMode visibleMode )
55 GetImplementation(*this).ShowIndicator( visibleMode );
58 Window::IndicatorSignalType& Window::IndicatorVisibilityChangedSignal()
60 return GetImplementation(*this).IndicatorVisibilityChangedSignal();
63 void Window::SetIndicatorBgOpacity( IndicatorBgOpacity opacity )
65 GetImplementation(*this).SetIndicatorBgOpacity( opacity );
68 void Window::RotateIndicator( WindowOrientation orientation )
70 GetImplementation(*this).RotateIndicator( orientation );
73 void Window::SetClass( std::string name, std::string klass )
75 GetImplementation(*this).SetClass( name, klass );
80 GetImplementation(*this).Raise();
85 GetImplementation(*this).Lower();
88 void Window::Activate()
90 GetImplementation(*this).Activate();
93 Orientation Window::GetOrientation()
95 Internal::Adaptor::OrientationPtr orientation = GetImplementation(*this).GetOrientation();
96 return Orientation(orientation.Get());
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 )