2 * Copyright (c) 2019 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.
19 #include <dali/internal/window-system/common/window-impl.h>
22 #include <dali/integration-api/core.h>
23 #include <dali/public-api/actors/actor.h>
24 #include <dali/public-api/actors/layer.h>
25 #include <dali/public-api/actors/camera-actor.h>
26 #include <dali/public-api/render-tasks/render-task.h>
27 #include <dali/public-api/render-tasks/render-task-list.h>
28 #include <dali/public-api/rendering/frame-buffer.h>
29 #include <dali/devel-api/adaptor-framework/orientation.h>
30 #include <dali/integration-api/events/touch-event-integ.h>
33 #include <dali/integration-api/adaptor-framework/render-surface-interface.h>
34 #include <dali/internal/window-system/common/event-handler.h>
35 #include <dali/internal/window-system/common/orientation-impl.h>
36 #include <dali/internal/window-system/common/render-surface-factory.h>
37 #include <dali/internal/window-system/common/window-factory.h>
38 #include <dali/internal/window-system/common/window-base.h>
39 #include <dali/internal/window-system/common/window-system.h>
40 #include <dali/internal/window-system/common/window-render-surface.h>
41 #include <dali/internal/window-system/common/window-visibility-observer.h>
53 #if defined(DEBUG_ENABLED)
54 Debug::Filter* gWindowLogFilter = Debug::Filter::New( Debug::NoLogging, false, "LOG_WINDOW" );
57 } // unnamed namespace
59 Window* Window::New( const PositionSize& positionSize, const std::string& name, const std::string& className, bool isTransparent )
61 Window* window = new Window();
62 window->mIsTransparent = isTransparent;
63 window->Initialize( positionSize, name, className );
68 : mWindowSurface( nullptr ),
70 mIsTransparent( false ),
71 mIsFocusAcceptable( true ),
73 mOpaqueState( false ),
74 mResizeEnabled( false ),
75 mType( Dali::Window::NORMAL ),
76 mParentWindow( NULL ),
77 mPreferredAngle( Dali::Window::NO_ORIENTATION_PREFERENCE ),
81 mOrientationMode( Internal::Adaptor::Window::OrientationMode::PORTRAIT ),
82 mNativeWindowId( -1 ),
83 mFocusChangedSignal(),
85 mDeleteRequestSignal(),
88 mVisibilityChangedSignal(),
89 mTransitionEffectEventSignal()
97 mEventHandler->RemoveObserver( *this );
101 void Window::Initialize(const PositionSize& positionSize, const std::string& name, const std::string& className)
103 // Create a window render surface
105 auto renderSurfaceFactory = Dali::Internal::Adaptor::GetRenderSurfaceFactory();
106 mSurface = renderSurfaceFactory->CreateWindowRenderSurface( positionSize, surface, mIsTransparent );
107 mWindowSurface = static_cast<WindowRenderSurface*>( mSurface.get() );
110 mWindowBase = mWindowSurface->GetWindowBase();
113 mWindowBase->IconifyChangedSignal().Connect( this, &Window::OnIconifyChanged );
114 mWindowBase->FocusChangedSignal().Connect( this, &Window::OnFocusChanged );
115 mWindowBase->DeleteRequestSignal().Connect( this, &Window::OnDeleteRequest );
116 mWindowBase->TransitionEffectEventSignal().Connect( this, &Window::OnTransitionEffectEvent );
118 mWindowSurface->OutputTransformedSignal().Connect( this, &Window::OnOutputTransformed );
120 if( !positionSize.IsEmpty() )
122 AddAuxiliaryHint( "wm.policy.win.user.geometry", "1" );
123 mResizeEnabled = true;
126 SetClass( name, className );
128 mWindowSurface->Map();
130 mOrientation = Orientation::New( this );
132 // Get OrientationMode
133 int screenWidth, screenHeight;
134 WindowSystem::GetScreenSize( screenWidth, screenHeight );
135 if( screenWidth > screenHeight )
137 mOrientationMode = Internal::Adaptor::Window::OrientationMode::LANDSCAPE;
141 mOrientationMode = Internal::Adaptor::Window::OrientationMode::PORTRAIT;
144 mNativeWindowId = mWindowBase->GetNativeWindowId();
147 void Window::OnAdaptorSet(Dali::Adaptor& adaptor)
149 mEventHandler = EventHandlerPtr(new EventHandler( mWindowSurface, *mAdaptor ) );
150 mEventHandler->AddObserver( *this );
153 void Window::OnSurfaceSet( Dali::RenderSurfaceInterface* surface )
155 mWindowSurface = static_cast<WindowRenderSurface*>( surface );
158 void Window::ShowIndicator( Dali::Window::IndicatorVisibleMode visibleMode )
162 void Window::SetIndicatorBgOpacity( Dali::Window::IndicatorBgOpacity opacityMode )
166 void Window::RotateIndicator( Dali::Window::WindowOrientation orientation )
170 void Window::SetClass( std::string name, std::string className )
173 mClassName = className;
174 mWindowBase->SetClass( name, className );
177 std::string Window::GetClassName() const
184 mWindowBase->Raise();
185 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), Raise() \n", this, mNativeWindowId );
190 mWindowBase->Lower();
191 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), Lower() \n", this, mNativeWindowId );
194 void Window::Activate()
196 mWindowBase->Activate();
197 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), Activate() \n", this, mNativeWindowId );
200 uint32_t Window::GetLayerCount() const
202 return mScene.GetLayerCount();
205 Dali::Layer Window::GetLayer( uint32_t depth ) const
207 return mScene.GetLayer( depth );
210 Dali::RenderTaskList Window::GetRenderTaskList() const
212 return mScene.GetRenderTaskList();
215 void Window::AddAvailableOrientation( Dali::Window::WindowOrientation orientation )
217 if( IsOrientationAvailable( orientation ) == false )
223 int convertedAngle = ConvertToAngle( orientation );
224 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), AddAvailableOrientation: %d\n", this, mNativeWindowId, convertedAngle );
225 for( std::size_t i = 0; i < mAvailableAngles.size(); i++ )
227 if( mAvailableAngles[i] == convertedAngle )
236 mAvailableAngles.push_back( convertedAngle );
237 SetAvailableAnlges( mAvailableAngles );
241 void Window::RemoveAvailableOrientation( Dali::Window::WindowOrientation orientation )
243 if( IsOrientationAvailable( orientation ) == false )
248 int convertedAngle = ConvertToAngle( orientation );
249 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), RemoveAvailableOrientation: %d\n", this, mNativeWindowId, convertedAngle );
250 for( std::vector< int >::iterator iter = mAvailableAngles.begin();
251 iter != mAvailableAngles.end(); ++iter )
253 if( *iter == convertedAngle )
255 mAvailableAngles.erase( iter );
260 SetAvailableAnlges( mAvailableAngles );
263 void Window::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
265 if( orientation < Dali::Window::NO_ORIENTATION_PREFERENCE || orientation > Dali::Window::LANDSCAPE_INVERSE )
267 DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::CheckOrientation: Invalid input orientation [%d]\n", orientation );
270 mPreferredAngle = ConvertToAngle( orientation );
271 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), SetPreferredOrientation: %d\n", this, mNativeWindowId, mPreferredAngle );
272 mWindowBase->SetPreferredAngle( mPreferredAngle );
275 Dali::Window::WindowOrientation Window::GetPreferredOrientation()
277 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), GetPreferredOrientation: %d\n", this, mNativeWindowId, mPreferredAngle );
278 Dali::Window::WindowOrientation preferredOrientation = ConvertToOrientation( mPreferredAngle );
279 return preferredOrientation;
282 void Window::SetAvailableAnlges( const std::vector< int >& angles )
284 if( angles.size() > 4 )
286 DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::SetAvailableAnlges: Invalid vector size! [%d]\n", angles.size() );
290 mWindowBase->SetAvailableAnlges( angles );
293 int Window::ConvertToAngle( Dali::Window::WindowOrientation orientation )
295 int convertAngle = static_cast< int >( orientation );
296 if( mOrientationMode == Internal::Adaptor::Window::OrientationMode::LANDSCAPE )
298 switch( orientation )
300 case Dali::Window::LANDSCAPE:
305 case Dali::Window::PORTRAIT:
310 case Dali::Window::LANDSCAPE_INVERSE:
315 case Dali::Window::PORTRAIT_INVERSE:
320 case Dali::Window::NO_ORIENTATION_PREFERENCE:
330 Dali::Window::WindowOrientation Window::ConvertToOrientation( int angle )
332 Dali::Window::WindowOrientation orientation = static_cast< Dali::Window::WindowOrientation >( angle );
333 if( mOrientationMode == Internal::Adaptor::Window::OrientationMode::LANDSCAPE )
339 orientation = Dali::Window::LANDSCAPE;
344 orientation = Dali::Window::PORTRAIT;
349 orientation = Dali::Window::LANDSCAPE_INVERSE;
354 orientation = Dali::Window::PORTRAIT_INVERSE;
359 orientation = Dali::Window::NO_ORIENTATION_PREFERENCE;
367 bool Window::IsOrientationAvailable( Dali::Window::WindowOrientation orientation ) const
369 if( orientation <= Dali::Window::NO_ORIENTATION_PREFERENCE || orientation > Dali::Window::LANDSCAPE_INVERSE )
371 DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::IsOrientationAvailable: Invalid input orientation [%d]\n", orientation );
377 Dali::Any Window::GetNativeHandle() const
379 return mWindowSurface->GetNativeWindow();
382 void Window::SetAcceptFocus( bool accept )
384 mIsFocusAcceptable = accept;
386 mWindowBase->SetAcceptFocus( accept );
389 bool Window::IsFocusAcceptable() const
391 return mIsFocusAcceptable;
402 WindowVisibilityObserver* observer( mAdaptor );
403 observer->OnWindowShown();
405 Dali::Window handle( this );
406 mVisibilityChangedSignal.Emit( handle, true );
409 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), Show(): iconified = %d, visible = %d\n", this, mNativeWindowId, mIconified, mVisible );
420 WindowVisibilityObserver* observer( mAdaptor );
421 observer->OnWindowHidden();
423 Dali::Window handle( this );
424 mVisibilityChangedSignal.Emit( handle, false );
427 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), Hide(): iconified = %d, visible = %d\n", this, mNativeWindowId, mIconified, mVisible );
430 bool Window::IsVisible() const
432 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), IsVisible(): iconified = %d, visible = %d\n", this, mNativeWindowId, mIconified, mVisible );
433 return mVisible && !mIconified;
436 unsigned int Window::GetSupportedAuxiliaryHintCount() const
438 return mWindowBase->GetSupportedAuxiliaryHintCount();
441 std::string Window::GetSupportedAuxiliaryHint( unsigned int index ) const
443 return mWindowBase->GetSupportedAuxiliaryHint( index );
446 unsigned int Window::AddAuxiliaryHint( const std::string& hint, const std::string& value )
448 return mWindowBase->AddAuxiliaryHint( hint, value );
451 bool Window::RemoveAuxiliaryHint( unsigned int id )
453 return mWindowBase->RemoveAuxiliaryHint( id );
456 bool Window::SetAuxiliaryHintValue( unsigned int id, const std::string& value )
458 return mWindowBase->SetAuxiliaryHintValue( id, value );
461 std::string Window::GetAuxiliaryHintValue( unsigned int id ) const
463 return mWindowBase->GetAuxiliaryHintValue( id );
466 unsigned int Window::GetAuxiliaryHintId( const std::string& hint ) const
468 return mWindowBase->GetAuxiliaryHintId( hint );
471 void Window::SetInputRegion( const Rect< int >& inputRegion )
473 mWindowBase->SetInputRegion( inputRegion );
475 DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::SetInputRegion: x = %d, y = %d, w = %d, h = %d\n", inputRegion.x, inputRegion.y, inputRegion.width, inputRegion.height );
478 void Window::SetType( Dali::Window::Type type )
482 mWindowBase->SetType( type );
488 Dali::Window::Type Window::GetType() const
493 bool Window::SetNotificationLevel( Dali::Window::NotificationLevel::Type level )
495 if( mType != Dali::Window::NOTIFICATION )
497 DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::SetNotificationLevel: Not supported window type [%d]\n", mType );
501 return mWindowBase->SetNotificationLevel( level );
504 Dali::Window::NotificationLevel::Type Window::GetNotificationLevel() const
506 if( mType != Dali::Window::NOTIFICATION )
508 DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::GetNotificationLevel: Not supported window type [%d]\n", mType );
509 return Dali::Window::NotificationLevel::NONE;
512 return mWindowBase->GetNotificationLevel();
515 void Window::SetOpaqueState( bool opaque )
517 mOpaqueState = opaque;
519 mWindowBase->SetOpaqueState( opaque );
521 DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::SetOpaqueState: opaque = %d\n", opaque );
524 bool Window::IsOpaqueState() const
529 bool Window::SetScreenOffMode(Dali::Window::ScreenOffMode::Type screenOffMode)
531 return mWindowBase->SetScreenOffMode( screenOffMode );
534 Dali::Window::ScreenOffMode::Type Window::GetScreenOffMode() const
536 return mWindowBase->GetScreenOffMode();
539 bool Window::SetBrightness( int brightness )
541 if( brightness < 0 || brightness > 100 )
543 DALI_LOG_INFO( gWindowLogFilter, Debug::Verbose, "Window::SetBrightness: Invalid brightness value [%d]\n", brightness );
547 return mWindowBase->SetBrightness( brightness );
550 int Window::GetBrightness() const
552 return mWindowBase->GetBrightness();
555 void Window::SetSize( Dali::Window::WindowSize size )
557 if( !mResizeEnabled )
559 AddAuxiliaryHint( "wm.policy.win.user.geometry", "1" );
560 mResizeEnabled = true;
563 PositionSize oldRect = mSurface->GetPositionSize();
565 mWindowSurface->MoveResize( PositionSize( oldRect.x, oldRect.y, size.GetWidth(), size.GetHeight() ) );
567 PositionSize newRect = mSurface->GetPositionSize();
569 // When surface size is updated, inform adaptor of resizing and emit ResizeSignal
570 if( ( oldRect.width != newRect.width ) || ( oldRect.height != newRect.height ) )
572 Uint16Pair newSize( newRect.width, newRect.height );
574 bool forceUpdate = false;
575 if( mWindowBase->IsEglWindowRotationSupported() )
580 SurfaceResized( forceUpdate );
582 mAdaptor->SurfaceResizePrepare( mSurface.get(), newSize );
584 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), SetSize(): resize signal [%d x %d]\n", this, mNativeWindowId, newRect.width, newRect.height );
586 Dali::Window handle( this );
587 mResizedSignal.Emit( newSize );
588 mResizeSignal.Emit( handle, newSize );
590 mAdaptor->SurfaceResizeComplete( mSurface.get(), newSize );
594 Dali::Window::WindowSize Window::GetSize() const
596 PositionSize positionSize = mSurface->GetPositionSize();
598 return Dali::Window::WindowSize( positionSize.width, positionSize.height );
601 void Window::SetPosition( Dali::Window::WindowPosition position )
603 if( !mResizeEnabled )
605 AddAuxiliaryHint( "wm.policy.win.user.geometry", "1" );
606 mResizeEnabled = true;
609 PositionSize oldRect = mSurface->GetPositionSize();
611 mWindowSurface->MoveResize( PositionSize( position.GetX(), position.GetY(), oldRect.width, oldRect.height ) );
614 Dali::Window::WindowPosition Window::GetPosition() const
616 PositionSize positionSize = mSurface->GetPositionSize();
618 return Dali::Window::WindowPosition( positionSize.x, positionSize.y );
621 void Window::SetPositionSize( PositionSize positionSize )
623 if( !mResizeEnabled )
625 AddAuxiliaryHint( "wm.policy.win.user.geometry", "1" );
626 mResizeEnabled = true;
629 PositionSize oldRect = mSurface->GetPositionSize();
631 mWindowSurface->MoveResize( positionSize );
633 PositionSize newRect = mSurface->GetPositionSize();
635 // When surface size is updated, inform adaptor of resizing and emit ResizeSignal
636 if( ( oldRect.width != newRect.width ) || ( oldRect.height != newRect.height ) )
638 Uint16Pair newSize( newRect.width, newRect.height );
640 bool forceUpdate = false;
641 if( mWindowBase->IsEglWindowRotationSupported() )
646 SurfaceResized( forceUpdate );
648 mAdaptor->SurfaceResizePrepare( mSurface.get(), newSize );
650 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), SetPositionSize():resize signal [%d x %d]\n", this, mNativeWindowId, newRect.width, newRect.height );
651 Dali::Window handle( this );
652 mResizedSignal.Emit( newSize );
653 mResizeSignal.Emit( handle, newSize );
654 mAdaptor->SurfaceResizeComplete( mSurface.get(), newSize );
658 Dali::Layer Window::GetRootLayer() const
660 return mScene.GetRootLayer();
663 void Window::SetTransparency( bool transparent )
665 mWindowSurface->SetTransparency( transparent );
668 bool Window::GrabKey( Dali::KEY key, KeyGrab::KeyGrabMode grabMode )
670 return mWindowBase->GrabKey( key, grabMode );
673 bool Window::UngrabKey( Dali::KEY key )
675 return mWindowBase->UngrabKey( key );
678 bool Window::GrabKeyList( const Dali::Vector< Dali::KEY >& key, const Dali::Vector< KeyGrab::KeyGrabMode >& grabMode, Dali::Vector< bool >& result )
680 return mWindowBase->GrabKeyList( key, grabMode, result );
683 bool Window::UngrabKeyList( const Dali::Vector< Dali::KEY >& key, Dali::Vector< bool >& result )
685 return mWindowBase->UngrabKeyList( key, result );
688 void Window::OnIconifyChanged( bool iconified )
696 WindowVisibilityObserver* observer( mAdaptor );
697 observer->OnWindowHidden();
699 Dali::Window handle( this );
700 mVisibilityChangedSignal.Emit( handle, false );
703 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), Iconified: visible = %d\n", this, mNativeWindowId, mVisible );
711 WindowVisibilityObserver* observer( mAdaptor );
712 observer->OnWindowShown();
714 Dali::Window handle( this );
715 mVisibilityChangedSignal.Emit( handle, true );
718 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), Deiconified: visible = %d\n", this, mNativeWindowId, mVisible );
722 void Window::OnFocusChanged( bool focusIn )
724 Dali::Window handle( this );
725 mFocusChangedSignal.Emit( focusIn );
726 mFocusChangeSignal.Emit( handle, focusIn );
729 void Window::OnOutputTransformed()
731 bool forceUpdate = false;
732 if( mWindowBase->IsEglWindowRotationSupported() )
736 PositionSize positionSize = mSurface->GetPositionSize();
737 SurfaceResized( forceUpdate );
738 mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( positionSize.width, positionSize.height ) );
739 mAdaptor->SurfaceResizeComplete( mSurface.get(), Adaptor::SurfaceSize( positionSize.width, positionSize.height ) );
742 void Window::OnDeleteRequest()
744 mDeleteRequestSignal.Emit();
747 void Window::OnTransitionEffectEvent( DevelWindow::EffectState state, DevelWindow::EffectType type )
749 Dali::Window handle( this );
750 mTransitionEffectEventSignal.Emit( handle, state, type );
753 void Window::OnTouchPoint( Dali::Integration::Point& point, int timeStamp )
755 FeedTouchPoint( point, timeStamp );
758 void Window::OnWheelEvent( Dali::Integration::WheelEvent& wheelEvent )
760 FeedWheelEvent( wheelEvent );
763 void Window::OnKeyEvent( Dali::Integration::KeyEvent& keyEvent )
765 FeedKeyEvent( keyEvent );
768 void Window::OnRotation( const RotationEvent& rotation )
770 mRotationAngle = rotation.angle;
771 mWindowWidth = rotation.width;
772 mWindowHeight = rotation.height;
774 // Notify that the orientation is changed
775 mOrientation->OnOrientationChange( rotation );
777 mWindowSurface->RequestRotation( mRotationAngle, mWindowWidth, mWindowHeight );
779 bool forceUpdate = false;
780 if( mWindowBase->IsEglWindowRotationSupported() )
785 SurfaceResized( forceUpdate );
787 mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( mWindowWidth, mWindowHeight ) );
789 DALI_LOG_RELEASE_INFO( "Window (%p), WinId (%d), OnRotation(): resize signal emit [%d x %d]\n", this, mNativeWindowId, mWindowWidth, mWindowHeight );
791 Dali::Window handle( this );
792 mResizedSignal.Emit( Dali::Window::WindowSize( mWindowWidth, mWindowHeight ) );
793 mResizeSignal.Emit( handle, Dali::Window::WindowSize( mWindowWidth, mWindowHeight ) );
795 mAdaptor->SurfaceResizeComplete( mSurface.get(), Adaptor::SurfaceSize( mWindowWidth, mWindowHeight ) );
798 void Window::OnPause()
802 mEventHandler->Pause();
806 void Window::OnResume()
810 mEventHandler->Resume();
814 void Window::RecalculateTouchPosition( Integration::Point& point )
816 Vector2 position = point.GetScreenPosition();
817 Vector2 convertedPosition;
819 switch( mRotationAngle )
823 convertedPosition.x = static_cast<float>( mWindowWidth ) - position.y;
824 convertedPosition.y = position.x;
829 convertedPosition.x = static_cast<float>( mWindowWidth ) - position.x;
830 convertedPosition.y = static_cast<float>( mWindowHeight ) - position.y;
835 convertedPosition.x = position.y;
836 convertedPosition.y = static_cast<float>( mWindowHeight ) - position.x;
841 convertedPosition = position;
846 point.SetScreenPosition( convertedPosition );
849 Dali::Window Window::Get( Dali::Actor actor )
851 Internal::Adaptor::Window* windowImpl = nullptr;
853 if ( Internal::Adaptor::Adaptor::IsAvailable() )
855 Dali::Internal::Adaptor::Adaptor& adaptor = Internal::Adaptor::Adaptor::GetImplementation( Internal::Adaptor::Adaptor::Get() );
856 windowImpl = static_cast<Internal::Adaptor::Window*>( adaptor.GetWindow( actor ) );
859 return Dali::Window( windowImpl );
862 void Window::SetParent( Dali::Window& parent )
864 if ( DALI_UNLIKELY( parent ) )
866 mParentWindow = parent;
867 Dali::Window self = Dali::Window( this );
868 // check circular parent window setting
869 if ( Dali::DevelWindow::GetParent( parent ) == self )
871 Dali::DevelWindow::Unparent( parent );
873 mWindowBase->SetParent( GetImplementation( mParentWindow ).mWindowBase );
877 void Window::Unparent()
879 mWindowBase->SetParent( nullptr );
880 mParentWindow.Reset();
883 Dali::Window Window::GetParent()
885 return mParentWindow;