From: Joe Konno Date: Fri, 20 Jul 2012 20:21:15 +0000 (-0700) Subject: EFL: Window const-ness refactor X-Git-Tag: upstream/0.2.1~279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d0be2b749e6dbc3d1876ed1f837a1ace463e03d;p=test%2Fgeneric%2Fwayland-fits.git EFL: Window const-ness refactor Signed-off-by: Joe Konno --- diff --git a/src/efl/window.cpp b/src/efl/window.cpp index d14d03e..ad6063e 100644 --- a/src/efl/window.cpp +++ b/src/efl/window.cpp @@ -11,52 +11,52 @@ Window::Window(const std::string& name, const std::string& title, const unsigned } -void Window::iconify(Eina_Bool iconify) +void Window::iconify(const Eina_Bool iconify) { elm_win_iconified_set(*this, iconify); } -Eina_Bool Window::isIconified() +const Eina_Bool Window::isIconified() { return elm_win_iconified_get(*this); } -void Window::maximize(Eina_Bool maximize) +void Window::maximize(const Eina_Bool maximize) { elm_win_maximized_set(*this, maximize); } -Eina_Bool Window::isMaximized() +const Eina_Bool Window::isMaximized() { return elm_win_maximized_get(*this); } -void Window::fullscreen(Eina_Bool fullscreen) +void Window::fullscreen(const Eina_Bool fullscreen) { elm_win_fullscreen_set(*this, fullscreen); } -Eina_Bool Window::isFullscreen() +const Eina_Bool Window::isFullscreen() { return elm_win_fullscreen_get(*this); } -void Window::sticky(Eina_Bool sticky) +void Window::sticky(const Eina_Bool sticky) { elm_win_sticky_set(*this, sticky); } -Eina_Bool Window::isSticky() +const Eina_Bool Window::isSticky() { return elm_win_sticky_get(*this); } -void Window::withdrawn(Eina_Bool withdraw) +void Window::withdrawn(const Eina_Bool withdraw) { elm_win_withdrawn_set(*this, withdraw); } -Eina_Bool Window::isWithdrawn() +const Eina_Bool Window::isWithdrawn() { return elm_win_withdrawn_get(*this); } @@ -66,7 +66,7 @@ void Window::rotate(const int degrees) elm_win_rotation_set(*this, degrees); } -int Window::getRotation() +const int Window::getRotation() { return elm_win_rotation_get(*this); } diff --git a/src/efl/window.h b/src/efl/window.h index 5c2fb76..bc78c5d 100644 --- a/src/efl/window.h +++ b/src/efl/window.h @@ -10,19 +10,19 @@ class Window : public EvasObject public: Window(const std::string& = "name", const std::string& = "title", const unsigned = 400, const unsigned = 300); - void iconify(Eina_Bool iconify); - void maximize(Eina_Bool maximize); - void fullscreen(Eina_Bool fullscreen); - void sticky(Eina_Bool sticky); - void withdrawn(Eina_Bool withdraw); + void iconify(const Eina_Bool iconify); + void maximize(const Eina_Bool maximize); + void fullscreen(const Eina_Bool fullscreen); + void sticky(const Eina_Bool sticky); + void withdrawn(const 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(); + const Eina_Bool isIconified(); + const Eina_Bool isMaximized(); + const Eina_Bool isFullscreen(); + const Eina_Bool isSticky(); + const Eina_Bool isWithdrawn(); + const int getRotation(); }; #endif