EFL: add isVisible() to EvasObject, minor refactor
authorJoe Konno <joe.konno@intel.com>
Thu, 19 Jul 2012 22:40:09 +0000 (15:40 -0700)
committerJoe Konno <joe.konno@intel.com>
Thu, 19 Jul 2012 22:40:09 +0000 (15:40 -0700)
For refactor, make class method use in the check() methods explicit with
"this->" syntax.

Signed-off-by: Joe Konno <joe.konno@intel.com>
src/efl/evasobject.cpp
src/efl/evasobject.h

index 65c8180..4d35d6d 100644 (file)
@@ -78,19 +78,24 @@ const int EvasObject::getHeight()
        return h;
 }
 
+const Eina_Bool EvasObject::isVisible()
+{
+       return evas_object_visible_get(*this);
+}
+
 void EvasObject::checkSize(const int width, const int height)
 {
-       BOOST_CHECK_EQUAL(getWidth(), width);
-       BOOST_CHECK_EQUAL(getHeight(), height);
+       BOOST_CHECK_EQUAL(this->getWidth(), width);
+       BOOST_CHECK_EQUAL(this->getHeight(), height);
 }
 
 void EvasObject::checkPosition(const int xcoord, const int ycoord)
 {
-       BOOST_CHECK_EQUAL(getX(), xcoord);
-       BOOST_CHECK_EQUAL(getY(), ycoord);
+       BOOST_CHECK_EQUAL(this->getX(), xcoord);
+       BOOST_CHECK_EQUAL(this->getY(), ycoord);
 }
 
 void EvasObject::checkVisible(const Eina_Bool isVisible)
 {
-       BOOST_CHECK_EQUAL(evas_object_visible_get(*this), isVisible);
+       BOOST_CHECK_EQUAL(this->isVisible(), isVisible);
 }
index e232faa..624b4cf 100644 (file)
@@ -16,6 +16,7 @@ public:
        const int getHeight();
        const int getX();
        const int getY();
+       const Eina_Bool isVisible();
 
        operator Evas*();
        operator Ecore_Evas*();