find out if object is an external => prints EFL error, but seems to work until my application finds a better way to find out

This commit is contained in:
Andreas Volz 2016-03-17 23:29:50 +01:00
parent 36d22d50fc
commit 3d0cb4e535
2 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,8 @@ public:
*/
Evasxx::Object &getSwallow ();
bool isExternalObject ();
/*!
* @throw ExternalNotExistingException
*/

View File

@ -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 ());