/*
- * $Id: rb_window.c 98 2004-08-26 13:12:55Z tilman $
+ * $Id: rb_window.c 99 2004-08-26 18:08:05Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
return INT2FIX (ecore_x_window_border_width_get (win->real));
}
+static VALUE c_border_width_set (VALUE self, VALUE val)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ Check_Type (val, T_FIXNUM);
+
+ ecore_x_window_border_width_set (win->real, FIX2INT (val));
+
+ return Qnil;
+}
+
static VALUE c_depth_get (VALUE self)
{
GET_OBJ (self, RbWindow, win);
rb_define_method (cWindow, "size", c_size_get, 0);
rb_define_method (cWindow, "geometry", c_geometry_get, 0);
rb_define_method (cWindow, "border_width", c_border_width_get, 0);
+ rb_define_method (cWindow, "border_width=", c_border_width_set, 1);
rb_define_method (cWindow, "depth", c_depth_get, 0);
rb_define_method (cWindow, "parent", c_parent_get, 0);
rb_define_method (cWindow, "title", c_title_get, 0);