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 void Window::AddAvailableOrientation( WindowOrientation orientation )
95 GetImplementation(*this).AddAvailableOrientation( orientation );
98 void Window::RemoveAvailableOrientation( WindowOrientation orientation )
100 GetImplementation(*this).RemoveAvailableOrientation( orientation );
103 void Window::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
105 GetImplementation(*this).SetPreferredOrientation( orientation );
108 Dali::Window::WindowOrientation Window::GetPreferredOrientation()
110 return GetImplementation(*this).GetPreferredOrientation();
113 DragAndDropDetector Window::GetDragAndDropDetector() const
115 return GetImplementation(*this).GetDragAndDropDetector();
118 Any Window::GetNativeHandle() const
120 return GetImplementation(*this).GetNativeHandle();
123 Window::Window( Internal::Adaptor::Window* window )
124 : BaseHandle( window )