#include "FUiAnim_RootVisualElement.h"
#include "FUiAnim_DisplayManager.h"
#include "FUiCtrl_Frame.h"
+#include "FUiCtrl_FrameImpl.h"
+#include "FUiCtrl_FormImpl.h"
#include "FUi_Clipboard.h"
#include "FUi_TouchManager.h"
#include "FUi_ControlManager.h"
}
}
+ if (pClientEvent->message_type == ECORE_X_ATOM_E_WINDOW_ROTATION_CHANGE_REQUEST)
+ {
+ SysLog(NID_UI, "[Ime Rotation]");
+
+ _Window* pWindow = pControlManager->GetCurrentFrame();
+ if (pWindow)
+ {
+ NativeWindowHandle handle = pWindow->GetNativeHandle();
+
+ if (pClientEvent->win == handle)
+ {
+ int angle = pClientEvent->data.l[1];
+ SysLog(NID_UI, "[Ime Rotation] Receive the client message(xid = 0x%x, angle = %d)", handle, angle);
+
+ _Frame* pFrame = dynamic_cast<_Frame*>(pWindow);
+
+ if (pFrame)
+ {
+ _FrameImpl* pFrameImpl = static_cast<Controls::_FrameImpl*>(pFrame->GetUserData());
+ if (pFrameImpl)
+ {
+ _FormImpl* pCurrentFormImpl = pFrameImpl->GetCurrentForm();
+
+ if (pCurrentFormImpl)
+ {
+ pCurrentFormImpl->UpdateOrientation(angle);
+ }
+ else
+ {
+ pFrameImpl->UpdateOrientation(angle);
+ }
+ }
+ }
+ }
+ }
+ }
+
return ECORE_CALLBACK_RENEW;
}