Add SetWindowRotationBounds
authorChoi Munseok <ms47.choi@samsung.com>
Sat, 6 Apr 2013 04:39:14 +0000 (13:39 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Sat, 6 Apr 2013 04:39:14 +0000 (13:39 +0900)
Change-Id: I36a82e53696edada5d1d644a3daf14890ac03693
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_EcoreEvas.cpp
src/ui/inc/FUi_EcoreEvas.h

index 6ef1170..d411e96 100644 (file)
@@ -2351,6 +2351,20 @@ _EcoreEvas::RegisterWindowStateCallback(const _Window& window)
 
        ecore_evas_callback_state_change_set(pLayer->GetEcoreEvas(), OnWindowStateChanged);
 }
+
+void
+_EcoreEvas::SetWindowRotationBounds(const _Window& window, int rotation, const Tizen::Graphics::Rectangle& bounds)
+{
+       _EflLayer* pLayer = GetEflLayer(window);
+       if (!pLayer)
+       {
+               return;
+       }
+
+       Ecore_X_Window win = (Ecore_X_Window) ecore_evas_window_get(pLayer->GetEcoreEvas());
+       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Set rotation bounds(rot = %d, %d, %d, %d, %d).", win, rotation, bounds.x, bounds.y, bounds.width, bounds.height);
+       ecore_x_e_window_rotation_geometry_set(win, rotation, bounds.x, bounds.y, bounds.width, bounds.height);
+}
 #endif
 
 // [ToDo] Remove API
index 2ea6293..41342cb 100644 (file)
@@ -114,6 +114,7 @@ public:
        void SetWindowPreferredRotation(const _Window& window, int rotation);
        void SetWindowAvailabledRotation(const _Window& window, int* rotations, unsigned int count);
        void RegisterWindowStateCallback(const _Window& window);
+       void SetWindowRotationBounds(const _Window& window, int rotation, const Tizen::Graphics::Rectangle& bounds);
 #else
        void SetWindowOrientationEnabled(const _Window& window, bool enable);
 #endif