}
void
-_EcoreEvas::RotateWindow(const _Window& window, int orientation)
+_EcoreEvas::RotateWindow(const _Window& window, int orientation, bool rotateEvas)
{
+ // Set window bounds according to the rotation
+ // Rotate Evas
+
_EflLayer* pLayer = GetEflLayer(window);
if (!pLayer)
{
if (rotatePartial == false)
{
- ecore_evas_rotation_with_resize_set(pEcoreEvas, orientation);
+ if (rotateEvas == true)
+ {
+ ecore_evas_rotation_with_resize_set(pEcoreEvas, orientation);
+ }
evas_object_move(pWinObj, 0, 0);
}
else
{
- ecore_evas_rotation_set(pEcoreEvas, orientation);
+ if (rotateEvas == true)
+ {
+ ecore_evas_rotation_set(pEcoreEvas, orientation);
+ }
Rectangle winBounds = _CoordinateSystemUtils::Transform(window.GetBounds());
int rotate = ecore_evas_rotation_get(pEcoreEvas);
}
}
-
int winX = winBounds.x;
int winY = winBounds.y;
}
}
-
int winX = winBounds.x;
int winY = winBounds.y;
}
}
- pEcoreEvas->RotateWindow(*pRootWindow, rotation);
+ pEcoreEvas->RotateWindow(*pRootWindow, rotation, false);
if (__statusChanged == true)
{
_ControlOrientation controlOrientation = (rotation == 0 || rotation == 180) ? _CONTROL_ORIENTATION_PORTRAIT : _CONTROL_ORIENTATION_LANDSCAPE;
ChangeLayout(controlOrientation);
- pEcoreEvas->RotateWindow(*this, __rotation);
+ pEcoreEvas->RotateWindow(*this, __rotation, false);
Invalidate(true);
void ActivateWindow(const _Window& window);
void MinimizeWindow(_Window& window);
- void RotateWindow(const _Window& window, int orientation);
+ void RotateWindow(const _Window& window, int orientation, bool rotateEvas = true);
int GetWindowRotation(const _Window& window);
#if defined(WINDOW_BASE_ROTATE)
void SetWindowPreferredRotation(const _Window& window, int rotation);