pEcoreEvas->RotateWindow(window, ::Convert(__orientationStatus));
}
#else
- // Initialize window rotation.
_EcoreEvas* pEcoreEvas = ::GetEcoreEvasMgr()->GetEcoreEvas();
if (pEcoreEvas)
{
int rotation = ecore_evas_rotation_get(pLayer->GetEcoreEvas());
- if (fullScreen == false)
+ if (fullScreen)
+ {
+ evas_object_move(pWinObj, 0, 0);
+
+ if ((rotation == 0) || (rotation == 180))
+ {
+ evas_object_resize(pWinObj, rootW, rootH);
+ }
+ else
+ {
+ evas_object_resize(pWinObj, rootH, rootW);
+ }
+
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, FULL SCREEN] Update bounds(rot = %d).", win, rotation);
+ }
+ else
{
Rectangle winBounds = _CoordinateSystemUtils::Transform(window.GetBounds());
evas_object_move(pWinObj, winX, winY);
evas_object_resize(pWinObj, winBounds.width, winBounds.height);
+
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, PARTIAL SCREEN] Update bounds(rot = %d, %d, %d, %d, %d).", win, rotation, winX, winY, winBounds.width, winBounds.height);
}
}
#else
evas_object_move(pWinObject, winX, winY);
evas_object_resize(pWinObject, winBounds.width, winBounds.height);
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Set bounds(rot = %d, %d, %d, %d, %d).", win, rotate, winX, winY, winBounds.width, winBounds.height);
+
SetLastResult(E_SUCCESS);
}
{
pEcoreEvas->UpdateWindowBounds(*pRootWindow);
+ pImpl->Invalidate(true);
+
Rectangle bounds = pRootWindow->GetBounds();
- SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, %d, %d, %d, %d] Update evas objects to %d degree.",
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, %d, %d, %d, %d] Update VEs to %d degree.",
pRootWindow->GetNativeHandle(), bounds.x, bounds.y, bounds.width, bounds.height, rotation);
}
}
IEventArg* pArg = _PublicOrientationEvent::CreateOrientationEventArgN(*__pPublicEvent->GetSource(), __status);
__pPublicEvent->Fire(*pArg);
+ _ControlImpl* pImpl = _ControlImpl::GetInstance(__publicControl);
+ if (pImpl)
+ {
+ _Window* pWindow = pImpl->GetCore().GetRootWindow();
+ if (pWindow)
+ {
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Fire the public orientation event..", pWindow->GetNativeHandle());
+ }
+ }
+
__updateStatus = true;
}
}
IEventArg* pArg = _PublicOrientationEvent::CreateOrientationEventArgN(*__pPublicEvent->GetSource(), status);
__pPublicEvent->Fire(*pArg);
+ _Window* pWindow = pImpl->GetCore().GetRootWindow();
+ if (pWindow)
+ {
+ SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Fire the public orientation event..", pWindow->GetNativeHandle());
+ }
+
__updateStatus = true;
}
}
{
result r = E_SUCCESS;
+#if defined(WINDOW_BASE_ROTATE)
+ __layout = _ControlManager::GetInstance()->GetOrientation();
+#endif
+
if (GetOwner() == null)
{
_Frame* pFrame = dynamic_cast<_Frame*>(_ControlManager::GetInstance()->GetCurrentFrame());
_Form* pForm = pFrame->GetCurrentForm();
pForm != null ? SetOwner(pForm) : SetOwner(pFrame);
+#if !defined(WINDOW_BASE_ROTATE)
__layout = _ControlManager::GetInstance()->GetOrientation();
+#endif
GET_SHAPE_CONFIG(CONTEXTMENU::ITEM_MAX_COUNT, __layout, __showItemMaxCount);
}