/*
- * $Id: rb_window.c 77 2004-08-19 17:39:29Z tilman $
+ * $Id: rb_window.c 78 2004-08-19 21:02:11Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
return Qnil;
}
-static VALUE c_get_size (VALUE self)
+static VALUE c_size_get (VALUE self)
{
- int x = 0, y = 0;
+ int w = 0, h = 0;
GET_OBJ (self, RbWindow, win);
- ecore_x_window_size_get (win->real, &x, &y);
+ ecore_x_window_size_get (win->real, &w, &h);
- return rb_ary_new3 (2, INT2FIX (x), INT2FIX (y));
+ return rb_ary_new3 (2, INT2FIX (w), INT2FIX (h));
}
-static VALUE c_get_geometry (VALUE self)
+static VALUE c_geometry_get (VALUE self)
{
int x = 0, y = 0, w = 0, h = 0;
rb_define_method (cWindow, "lower", c_lower, 0);
rb_define_method (cWindow, "move", c_move, 2);
rb_define_method (cWindow, "resize", c_resize, 2);
- rb_define_method (cWindow, "get_size", c_get_size, 0);
- rb_define_method (cWindow, "get_geometry", c_get_geometry, 0);
+ rb_define_method (cWindow, "size", c_size_get, 0);
+ rb_define_method (cWindow, "geometry", c_geometry_get, 0);
rb_define_method (cWindow, "set_event_mask", c_set_event_mask, 1);
rb_define_method (cWindow, "unset_event_mask",
c_unset_event_mask, 1);