EFL: Window const-ness refactor
authorJoe Konno <joe.konno@intel.com>
Fri, 20 Jul 2012 20:21:15 +0000 (13:21 -0700)
committerJoe Konno <joe.konno@intel.com>
Fri, 20 Jul 2012 20:21:15 +0000 (13:21 -0700)
Signed-off-by: Joe Konno <joe.konno@intel.com>
src/efl/window.cpp
src/efl/window.h

index d14d03e..ad6063e 100644 (file)
@@ -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);
 }
index 5c2fb76..bc78c5d 100644 (file)
@@ -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