projects
/
ruby-evas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added EvasObject#userdata.
[ruby-evas.git]
/
src
/
rb_evas_object.h
diff --git
a/src/rb_evas_object.h
b/src/rb_evas_object.h
index fee1a15f60e0381262e5cd65792723e7f1cc82b0..99e0743dd684a5203209770ddb740bd9b7d36769 100644
(file)
--- a/
src/rb_evas_object.h
+++ b/
src/rb_evas_object.h
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_evas_object.h
42 2004-07-25 16:08:00
Z tilman $
+ * $Id: rb_evas_object.h
304 2005-03-22 17:51:51
Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-21,13
+21,26
@@
#ifndef __RB_EVAS_OBJECT_H
#define __RB_EVAS_OBJECT_H
#ifndef __RB_EVAS_OBJECT_H
#define __RB_EVAS_OBJECT_H
+#include <stdbool.h>
+
#define RUBY_EVAS_OBJECT_KEY "__RB_EVAS_OBJECT_OBJECT"
#define RUBY_EVAS_OBJECT_KEY "__RB_EVAS_OBJECT_OBJECT"
-VALUE cEvasObject;
+typedef struct {
+ Evas_Object *real;
+ VALUE parent;
+ VALUE callbacks;
+ VALUE userdata;
+} RbEvasObject;
void Init_EvasObject (void);
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
#endif