Changeset 3587 for libcaca/trunk/ruby/caca-canvas.c
- Timestamp:
- Jul 27, 2009, 1:26:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/ruby/caca-canvas.c
r3582 r3587 110 110 } 111 111 112 get_int(cursor_x) 113 get_int(cursor_y) 112 static VALUE wherex(VALUE self) 113 { 114 return INT2NUM(caca_wherex(_SELF)); 115 } 116 117 static VALUE wherey(VALUE self) 118 { 119 return INT2NUM(caca_wherey(_SELF)); 120 } 114 121 115 122 simple_func(clear_canvas) … … 586 593 587 594 rb_define_method(cCanvas, "gotoxy", gotoxy, 2); 588 rb_define_method(cCanvas, " cursor_x", get_cursor_x, 0);589 rb_define_method(cCanvas, " cursor_y", get_cursor_y, 0);595 rb_define_method(cCanvas, "wherex", wherex, 0); 596 rb_define_method(cCanvas, "wherey", wherey, 0); 590 597 rb_define_method(cCanvas, "handle_x", get_canvas_handle_x, 0); 591 598 rb_define_method(cCanvas, "handle_y", get_canvas_handle_y, 0);
Note: See TracChangeset
for help on using the changeset viewer.