- VALUE self, argv[1];
- Evas_Object **rect;
-
- if (!rb_obj_is_kind_of (evas, cEvas)) {
- rb_raise (rb_eTypeError,
- "wrong argument type %s (expected Evas)",
- rb_obj_classname (evas));
- return Qnil;
- }
-
- GET_OBJ (evas, Evas, e, "Evas");
+ CHECK_CLASS (evas, cEvas);
+ GET_OBJ (evas, RbEvas, e);
+ GET_OBJ (self, RbEvasObject, rect);