eoxx: add some vodoo to the C++ binding.

I don't like the way this show up in the class. Any better idea ?


SVN revision: 83851
master
Cedric BAIL 10 years ago
parent cb4dea0c9e
commit 532c000c5c
  1. 15
      eoxx/src/lib/Eo.hh

@ -29,6 +29,8 @@ namespace efl {
if (!iobj) throw efl::eo_null;
}
~eo() {};
void invalidate();
bool valid() const;
@ -46,13 +48,22 @@ namespace efl {
_ref();
}
~eo() {};
operator Eo *() { return iobj; }
bool operator==(const eo &c) const { return iobj == c.iobj; }
bool operator!=(const eo &c) const { return iobj != c.iobj; }
bool vdo(Eo_Op_Type op_type, ...) {
va_list ops;
Eina_Bool ret;
va_start(ops, op_type);
ret = eo_vdo_internal(iobj, op_type, &ops);
va_end(ops);
return ret ? true : false;
}
protected:
virtual void _unref();
virtual void _ref();

Loading…
Cancel
Save