/*
- * $Id: rb_ecore_evas_main.c 348 2005-12-24 17:11:24Z tilman $
+ * $Id: rb_ecore_evas_main.c 389 2006-11-11 11:40:24Z tilman $
*
* Copyright (C) 2004-2005 ruby-ecore team (see AUTHORS)
*
void Init_ecore_evas (void)
{
+ VALUE m;
+
rb_require ("ecore");
rb_require ("evas");
+ rb_require ("ecore_x");
+
+ m = rb_const_get (mEcore, rb_intern ("X"));
+ cWindow = rb_const_get (m, rb_intern ("Window"));
+
mEvas = rb_define_module_under (mEcore, "Evas");
Init_EcoreEvas ();
/*
- * $Id: rb_ecore_evas_main.h 77 2004-08-19 17:39:29Z tilman $
+ * $Id: rb_ecore_evas_main.h 389 2006-11-11 11:40:24Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
#ifndef __RB_ECORE_EVAS_MAIN_H
#define __RB_ECORE_EVAS_MAIN_H
-VALUE mEvas;
+VALUE mEvas, cWindow;
#endif
/*
- * $Id: rb_gl_x11.c 351 2006-02-10 15:25:40Z tilman $
+ * $Id: rb_gl_x11.c 389 2006-11-11 11:40:24Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
{
VALUE c;
- rb_require ("ecore_x");
-
c = rb_define_class_under (mEvas, "GlX11", cEcoreEvas);
rb_define_alloc_func (c, c_alloc);
/*
- * $Id: rb_software_x11.c 351 2006-02-10 15:25:40Z tilman $
+ * $Id: rb_software_x11.c 389 2006-11-11 11:40:24Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
{
VALUE c;
- rb_require ("ecore_x");
-
c = rb_define_class_under (mEvas, "SoftwareX11", cEcoreEvas);
rb_define_alloc_func (c, c_alloc);
/*
- * $Id: rb_xrender_x11.c 351 2006-02-10 15:25:40Z tilman $
+ * $Id: rb_xrender_x11.c 389 2006-11-11 11:40:24Z tilman $
*
* Copyright (C) 2005 ruby-ecore team (see AUTHORS)
*
{
VALUE c;
- rb_require ("ecore_x");
-
c = rb_define_class_under (mEvas, "XRenderX11", cEcoreEvas);
rb_define_alloc_func (c, c_alloc);
/*
- * $Id: rb_window.c 351 2006-02-10 15:25:40Z tilman $
+ * $Id: rb_window.c 389 2006-11-11 11:40:24Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
#include "rb_window.h"
#include "rb_cursor.h"
-VALUE cWindow;
+static VALUE cWindow;
static void c_mark (RbWindow *w)
{
/*
- * $Id: rb_window.h 77 2004-08-19 17:39:29Z tilman $
+ * $Id: rb_window.h 389 2006-11-11 11:40:24Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
void Init_Window (void);
VALUE TO_ECORE_X_WINDOW (VALUE parent, Ecore_X_Window w);
-#ifndef __RB_WINDOW_C
-extern VALUE cWindow;
-#endif
-
#endif