Kouhei Sutou
kous****@users*****
2006年 11月 27日 (月) 13:04:32 JST
Index: tomoe/ext/ruby/tomoe-rb-writing.c diff -u tomoe/ext/ruby/tomoe-rb-writing.c:1.4 tomoe/ext/ruby/tomoe-rb-writing.c:1.5 --- tomoe/ext/ruby/tomoe-rb-writing.c:1.4 Thu Nov 23 23:09:36 2006 +++ tomoe/ext/ruby/tomoe-rb-writing.c Mon Nov 27 13:04:31 2006 @@ -86,6 +86,9 @@ cTomoeWriting = G_DEF_CLASS(TOMOE_TYPE_WRITING, "Writing", mTomoe); + rb_define_const(cTomoeWriting, "WIDTH", INT2NUM(TOMOE_WRITING_WIDTH)); + rb_define_const(cTomoeWriting, "HEIGHT", INT2NUM(TOMOE_WRITING_HEIGHT)); + rb_include_module(cTomoeWriting, rb_mEnumerable); rb_define_method(cTomoeWriting, "move_to", tw_move_to, 2);