_EcoreEvas* pEcoreEvas = static_cast<_EcoreEvas*>(pData);
if (pEcoreEvas)
{
- SysLog(NID_UI, "ROTATE SYNC: Window(0x%x) <- X(0x%x) IsOrientationEnabled = %d", pWindow, win, orientationEnabled);
pEcoreEvas->SetWindowOrientationEnabled(*pWindow, orientationEnabled);
}
}
}
unsigned int supportRotation = (unsigned int)enable;
- if (enable)
- {
- SysLog(NID_UI, "ROTATE SYNC: atomRotateAuto = %d, supportRotation = %d, Window(0x%x) <- X(0x%x) ON",
- __atomRotateAuto, supportRotation, &window, window.GetNativeHandle());
- }
- else
- {
- SysLog(NID_UI, "ROTATE SYNC: atomRotateAuto = %d, supportRotation = %d, Window(0x%x) <- X(0x%x) OFF",
- __atomRotateAuto, supportRotation, &window, window.GetNativeHandle());
- }
-
ecore_x_window_prop_card32_set(win, __atomRotateAuto, &supportRotation, 1);
}
return;
}
-#if defined(ROTATION_SYNC)
_EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
if (!pEcoreEvas)
{
{
if ((__mode == ORIENTATION_AUTOMATIC) || (__mode == ORIENTATION_AUTOMATIC_FOUR_DIRECTION))
{
- SysLog(NID_UI, "ROTATE SYNC: Form(0x%x) <- Parent(0x%x), X(0x%x) ON", pForm, pWindow, pWindow->GetNativeHandle());
pEcoreEvas->SetWindowOrientationEnabled(*pWindow, true);
pWindow->SetOrientationEnabled(true);
}
else
{
- SysLog(NID_UI, "ROTATE SYNC: Form(0x%x) <- Parent(0x%x), X(0x%x) OFF", pForm, pWindow, pWindow->GetNativeHandle());
pEcoreEvas->SetWindowOrientationEnabled(*pWindow, false);
pWindow->SetOrientationEnabled(false);
}
{
if ((__mode == ORIENTATION_AUTOMATIC) || (__mode == ORIENTATION_AUTOMATIC_FOUR_DIRECTION))
{
- SysLog(NID_UI, "ROTATE SYNC: Frame(0x%x) <- X(0x%x) ON", pFrame, pFrame->GetNativeHandle());
pEcoreEvas->SetWindowOrientationEnabled(*pFrame, true);
pFrame->SetOrientationEnabled(true);
}
else
{
- SysLog(NID_UI, "ROTATE SYNC: Frame(0x%x) <- X(0x%x) OFF", pFrame, pFrame->GetNativeHandle());
pEcoreEvas->SetWindowOrientationEnabled(*pFrame, false);
pFrame->SetOrientationEnabled(false);
}
}
}
}
-#endif
OrientationStatus status = pImplManager->GetOrientationStatus(__mode);
__status = status;
-#if !defined(ROTATION_SYNC)
- _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
- if (!pEcoreEvas)
- {
- return;
- }
-#endif
-
pEcoreEvas->AllowSetWindowBounds(false);
FireEvent(status);
pEcoreEvas->AllowSetWindowBounds(true);
result r = CreateLayer();
SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
-#if defined(ROTATION_SYNC)
_EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
SysAssert(pEcoreEvas);
pEcoreEvas->SetWindowOrientationEnabled(*this, false);
-#endif
// Get visual element.
_VisualElement* pVisualElement = GetVisualElement();
return enable;
}
-#if defined(ROTATION_SYNC)
void
_Window::SetOrientationEnabled(bool enable)
{
{
return __orientationEnabled;
}
-#endif
_RootVisualElement*
_Window::GetRootVisualElement(void) const
, __isOpened(false)
, __isInitialized(false)
, __pFocusedControl(null)
-#if defined(ROTATION_SYNC)
, __orientationEnabled(false)
-#endif
, __transient(true)
{
SetControlDelegate(*this);
#include <FBase_ObjectManagerT.h>
#define MULTI_WINDOW
-#define ROTATION_SYNC
namespace Tizen { namespace Ui
{
void SetActivationEnabled(bool enable);
bool IsActivationEnabled(void);
-#if defined(ROTATION_SYNC)
void SetOrientationEnabled(bool enable);
bool IsOrientationEnabled(void);
-#endif
Tizen::Ui::Animations::_RootVisualElement* GetRootVisualElement(void) const;
NativeWindowHandle GetNativeHandle(void) const;
bool __isOpened;
bool __isInitialized;
_Control* __pFocusedControl;
-#if defined(ROTATION_SYNC)
bool __orientationEnabled;
-#endif
bool __transient;
friend class _ControlManager;