X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Frb_evas_object.h;h=99e0743dd684a5203209770ddb740bd9b7d36769;hb=e012a51b703ddd23c407d308602246d07ff73d2e;hp=99190eae82f41ab7545d09d237c99f9fe918d75c;hpb=6875d95e45841dbac62479cc583d13a7d1fd3803;p=ruby-evas.git diff --git a/src/rb_evas_object.h b/src/rb_evas_object.h index 99190ea..99e0743 100644 --- a/src/rb_evas_object.h +++ b/src/rb_evas_object.h @@ -1,5 +1,5 @@ /* - * $Id: rb_evas_object.h 46 2004-07-26 11:14:50Z tilman $ + * $Id: rb_evas_object.h 304 2005-03-22 17:51:51Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -21,15 +21,26 @@ #ifndef __RB_EVAS_OBJECT_H #define __RB_EVAS_OBJECT_H +#include + #define RUBY_EVAS_OBJECT_KEY "__RB_EVAS_OBJECT_OBJECT" -#ifndef __RB_EVAS_OBJECT_C -extern VALUE cEvasObject; -#endif +typedef struct { + Evas_Object *real; + VALUE parent; + VALUE callbacks; + VALUE userdata; +} 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