+static VALUE c_equal_value (VALUE self, VALUE other)
+{
+ GET_OBJ (self, RbWindow, w1);
+
+ CHECK_CLASS (other, cWindow);
+ GET_OBJ (other, RbWindow, w2);
+
+ return w1->real == w2->real ? Qtrue : Qfalse;
+}
+
+static VALUE c_show (VALUE self)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ ecore_x_window_show (win->real);
+
+ return Qnil;
+}
+
+static VALUE c_hide (VALUE self)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ ecore_x_window_hide (win->real);
+
+ return Qnil;
+}
+
+static VALUE c_delete (VALUE self)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ if (win->real) {
+ ecore_x_window_del (win->real);
+ win->real = 0;
+ }
+
+ return Qnil;
+}
+
+static VALUE c_raise (VALUE self)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ ecore_x_window_raise (win->real);
+
+ return Qnil;
+}
+
+static VALUE c_lower (VALUE self)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ ecore_x_window_lower (win->real);
+
+ return Qnil;
+}
+
+static VALUE c_move (VALUE self, VALUE x, VALUE y)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ Check_Type (x, T_FIXNUM);
+ Check_Type (y, T_FIXNUM);
+
+ ecore_x_window_move (win->real, FIX2INT (x), FIX2INT (y));
+
+ return Qnil;
+}
+
+static VALUE c_resize (VALUE self, VALUE w, VALUE h)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ Check_Type (w, T_FIXNUM);
+ Check_Type (h, T_FIXNUM);
+
+ ecore_x_window_move (win->real, FIX2INT (w), FIX2INT (h));
+
+ return Qnil;
+}
+
+static VALUE c_get_size (VALUE self)
+{
+ int x = 0, y = 0;
+
+ GET_OBJ (self, RbWindow, win);
+
+ ecore_x_window_size_get (win->real, &x, &y);
+
+ return rb_ary_new3 (2, INT2FIX (x), INT2FIX (y));
+}
+
+static VALUE c_get_geometry (VALUE self)
+{
+ int x = 0, y = 0, w = 0, h = 0;
+
+ GET_OBJ (self, RbWindow, win);
+
+ ecore_x_window_geometry_get (win->real, &x, &y, &w, &h);
+
+ return rb_ary_new3 (4, INT2FIX (x), INT2FIX (y),
+ INT2FIX (w), INT2FIX (h));
+}
+
+static VALUE c_set_event_mask (VALUE self, VALUE val)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ Check_Type (val, T_FIXNUM);
+
+ ecore_x_event_mask_set (win->real, FIX2INT (val));
+
+ return Qnil;
+}
+
+static VALUE c_unset_event_mask (VALUE self, VALUE val)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ Check_Type (val, T_FIXNUM);
+
+ ecore_x_event_mask_unset (win->real, FIX2INT (val));
+
+ return Qnil;
+}
+
+static VALUE c_set_protocol (VALUE self, VALUE proto, VALUE on)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ Check_Type (proto, T_FIXNUM);
+ CHECK_BOOL (on);
+
+ ecore_x_window_prop_protocol_set (win->real, FIX2INT (proto),
+ on == Qtrue);
+
+ return Qnil;
+}
+