From b682cdf5b5c4a0316466fc7bc694d586fbe1cfc5 Mon Sep 17 00:00:00 2001 From: Joe Konno Date: Fri, 20 Jul 2012 12:47:38 -0700 Subject: [PATCH] EFL: rotation set/get in Window Signed-off-by: Joe Konno --- src/efl/window.cpp | 10 ++++++++++ src/efl/window.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/efl/window.cpp b/src/efl/window.cpp index df0a994..d14d03e 100644 --- a/src/efl/window.cpp +++ b/src/efl/window.cpp @@ -60,3 +60,13 @@ Eina_Bool Window::isWithdrawn() { return elm_win_withdrawn_get(*this); } + +void Window::rotate(const int degrees) +{ + elm_win_rotation_set(*this, degrees); +} + +int Window::getRotation() +{ + return elm_win_rotation_get(*this); +} diff --git a/src/efl/window.h b/src/efl/window.h index 01109e3..5c2fb76 100644 --- a/src/efl/window.h +++ b/src/efl/window.h @@ -15,12 +15,14 @@ public: void fullscreen(Eina_Bool fullscreen); void sticky(Eina_Bool sticky); void withdrawn(Eina_Bool withdraw); + void rotate(const int degrees); Eina_Bool isIconified(); Eina_Bool isMaximized(); Eina_Bool isFullscreen(); Eina_Bool isSticky(); Eina_Bool isWithdrawn(); + int getRotation(); }; #endif -- 2.7.4