mOpaqueState( false ),
mResizeEnabled( false ),
mType( Dali::Window::NORMAL ),
+ mParentWindow( NULL ),
mPreferredOrientation( Dali::Window::PORTRAIT ),
mRotationAngle( 0 ),
mWindowWidth( 0 ),
{
Uint16Pair newSize( newRect.width, newRect.height );
+ SurfaceResized();
+
mAdaptor->SurfaceResizePrepare( mSurface.get(), newSize );
mResizedSignal.Emit( newSize );
{
Uint16Pair newSize( newRect.width, newRect.height );
+ SurfaceResized();
+
mAdaptor->SurfaceResizePrepare( mSurface.get(), newSize );
mResizedSignal.Emit( newSize );
void Window::OnOutputTransformed()
{
PositionSize positionSize = mSurface->GetPositionSize();
+ SurfaceResized();
mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( positionSize.width, positionSize.height ) );
mAdaptor->SurfaceResizeComplete( mSurface.get(), Adaptor::SurfaceSize( positionSize.width, positionSize.height ) );
}
mWindowSurface->RequestRotation( mRotationAngle, mWindowWidth, mWindowHeight );
+ SurfaceResized();
+
mAdaptor->SurfaceResizePrepare( mSurface.get(), Adaptor::SurfaceSize( mRotationAngle, mWindowHeight ) );
// Emit signal
return Dali::Window( windowImpl );
}
+void Window::SetParent( Dali::Window& parent )
+{
+ if ( DALI_UNLIKELY( parent ) )
+ {
+ mParentWindow = parent;
+ Dali::Window grandParent = Dali::DevelWindow::GetParent( parent );
+ // check circular parent window setting
+ if ( DALI_UNLIKELY( grandParent ) && mWindowBase->IsMatchedWindow( grandParent.GetNativeHandle() ) )
+ {
+ Dali::DevelWindow::Unparent( parent );
+ }
+ mWindowBase->SetParent( parent.GetNativeHandle() );
+ }
+}
+
+void Window::Unparent()
+{
+ Any parent;
+ mWindowBase->SetParent( parent );
+}
+
+Dali::Window Window::GetParent()
+{
+ return mParentWindow;
+}
+
} // Adaptor
} // Internal