X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Frb_evas_object.h;h=ae60574bea8915b3d7d7efe66768872703040914;hb=2798e153edf68de89ca2ea53732d01ef7c7f0b64;hp=02188816777047b6c65eb3f6a86c69093a8829b0;hpb=9af608c8ef88aadac161a557b27822c9defa39f0;p=ruby-evas.git diff --git a/src/rb_evas_object.h b/src/rb_evas_object.h index 0218881..ae60574 100644 --- a/src/rb_evas_object.h +++ b/src/rb_evas_object.h @@ -1,5 +1,5 @@ /* - * $Id: rb_evas_object.h 2 2004-06-19 18:55:39Z tilman $ + * $Id: rb_evas_object.h 281 2005-03-14 20:51:40Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -21,11 +21,25 @@ #ifndef __RB_EVAS_OBJECT_H #define __RB_EVAS_OBJECT_H -VALUE cEvasObject; +#include + +#define RUBY_EVAS_OBJECT_KEY "__RB_EVAS_OBJECT_OBJECT" + +typedef struct { + Evas_Object *real; + VALUE parent; + VALUE callbacks; +} RbEvasObject; void Init_EvasObject (void); -void c_evas_object_free (Evas_Object **e); -void c_evas_object_mark (Evas_Object **e); +void c_evas_object_free (RbEvasObject *e, bool free_mem); +void c_evas_object_mark (RbEvasObject *e); + +VALUE TO_EVAS_OBJECT (Evas_Object *o); + +#ifndef __RB_EVAS_OBJECT_C +extern VALUE cEvasObject; +#endif #endif