-static VALUE c_ev_mouse_button_up_init (VALUE self, VALUE event)
-{
- VALUE c = CLASS_OF (self);
- Ecore_X_Event_Mouse_Button_Up *e = (void *) event;
-
- rb_define_attr (c, "button", 1, 0);
- rb_define_attr (c, "modifiers", 1, 0);
- rb_define_attr (c, "x", 1, 0);
- rb_define_attr (c, "y", 1, 0);
- rb_define_attr (c, "root", 1, 0);
- rb_define_attr (c, "window", 1, 0);
- rb_define_attr (c, "event_window", 1, 0);
- rb_define_attr (c, "time", 1, 0);
-
- rb_iv_set (self, "@button", INT2FIX (e->button));
- rb_iv_set (self, "@modifiers", INT2FIX (e->modifiers));
- rb_iv_set (self, "@x", INT2FIX (e->x));
- rb_iv_set (self, "@y", INT2FIX (e->x));
- rb_iv_set (self, "@root", rb_ary_new3 (2, INT2FIX (e->root.x),
- INT2FIX (e->root.y)));
- rb_iv_set (self, "@window", TO_ECORE_X_WINDOW (Qnil, e->win));
- rb_iv_set (self, "@event_window",
- TO_ECORE_X_WINDOW (Qnil, e->event_win));
- rb_iv_set (self, "@time", UINT2NUM (e->time));
-
- return self;
-}
-