X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fecore_x%2Frb_window.c;h=6aca50968d09484e0f0b51572a125bd6f9343049;hb=b7fcd426e8801e36a7b9617c46dd9668ae94a02d;hp=b0f0837db8cb686360d90444fb9936dba262e8f6;hpb=8f4a0888eab83e8924bc33193c8a0f73252e6202;p=ruby-ecore.git diff --git a/src/ecore_x/rb_window.c b/src/ecore_x/rb_window.c index b0f0837..6aca509 100644 --- a/src/ecore_x/rb_window.c +++ b/src/ecore_x/rb_window.c @@ -1,5 +1,5 @@ /* - * $Id: rb_window.c 103 2004-08-29 08:57:12Z tilman $ + * $Id: rb_window.c 111 2004-09-02 18:47:00Z tilman $ * * Copyright (C) 2004 ruby-ecore team (see AUTHORS) * @@ -421,6 +421,28 @@ static VALUE c_sticky_set (VALUE self, VALUE val) 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); @@ -486,7 +508,9 @@ void Init_Window (void) rb_define_singleton_method (cWindow, "new", c_new, -1); rb_define_method (cWindow, "initialize", c_init, -1); rb_define_method (cWindow, "inspect", c_inspect, 0); + rb_define_method (cWindow, "eql?", c_equal_value, 1); rb_define_method (cWindow, "==", c_equal_value, 1); + rb_define_method (cWindow, "===", c_equal_value, 1); rb_define_method (cWindow, "configure", c_configure, -1); rb_define_method (cWindow, "show", c_show, 0); rb_define_method (cWindow, "hide", c_hide, 0); @@ -515,6 +539,8 @@ void Init_Window (void) 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);