/*
- * $Id: rb_window.c 108 2004-08-31 18:44:44Z tilman $
+ * $Id: rb_window.c 111 2004-09-02 18:47:00Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
return Qnil;
}
+static VALUE c_borderless_get (VALUE self)
+{
+ int s;
+
+ GET_OBJ (self, RbWindow, win);
+
+ s = ecore_x_window_prop_borderless_get (win->real);
+
+ return s ? Qtrue : Qfalse;
+}
+
+static VALUE c_borderless_set (VALUE self, VALUE val)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ CHECK_BOOL (val);
+
+ ecore_x_window_prop_borderless_set (win->real, val == Qtrue);
+
+ return Qnil;
+}
+
static VALUE c_cursor_set (VALUE self, VALUE val)
{
GET_OBJ (self, RbWindow, win);
rb_define_method (cWindow, "get_protocol", c_get_protocol, 1);
rb_define_method (cWindow, "sticky?", c_sticky_get, 0);
rb_define_method (cWindow, "sticky=", c_sticky_set, 1);
+ rb_define_method (cWindow, "borderless?", c_borderless_get, 0);
+ rb_define_method (cWindow, "borderless=", c_borderless_set, 1);
rb_define_method (cWindow, "cursor=", c_cursor_set, 1);
rb_define_method (cWindow, "manage", c_manage, 0);
rb_define_method (cWindow, "manage_container", c_manage_container, 0);