andreas pushed a commit to branch master.

http://git.enlightenment.org/bindings/cxx/eflxx.git/commit/?id=3d0cb4e5356f21788c4bc299d41479441159f508

commit 3d0cb4e5356f21788c4bc299d41479441159f508
Author: Andreas Volz <[email protected]>
Date:   Thu Mar 17 23:29:50 2016 +0100

    find out if object is an external => prints EFL error, but seems to work 
until my application finds a better way to find out
---
 edjexx/include/edjexx/Part.h | 2 ++
 edjexx/src/Part.cpp          | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/edjexx/include/edjexx/Part.h b/edjexx/include/edjexx/Part.h
index 7f53c6b..c02d78a 100644
--- a/edjexx/include/edjexx/Part.h
+++ b/edjexx/include/edjexx/Part.h
@@ -43,6 +43,8 @@ public:
    */
   Evasxx::Object &getSwallow ();
 
+  bool isExternalObject ();
+  
   /*!
    * @throw ExternalNotExistingException
    */
diff --git a/edjexx/src/Part.cpp b/edjexx/src/Part.cpp
index ee7ef3a..84b4bab 100644
--- a/edjexx/src/Part.cpp
+++ b/edjexx/src/Part.cpp
@@ -78,6 +78,11 @@ Evasxx::Object &Part::getSwallow()
   return *mSwallowObject;
 }
 
+bool Part::isExternalObject ()
+{
+  return edje_object_part_external_object_get (mParent->obj(), mPartname.c_str 
());
+}
+
 Evasxx::Object &Part::getExternalObject ()
 {
   Evas_Object *eo = edje_object_part_external_object_get (mParent->obj(), 
mPartname.c_str ());

-- 


Reply via email to