From: Masao M. <mu...@hi...> - 2002-07-30 15:36:56
|
むとうです。 今やってま〜す。 もうちょっと待ってください(^^;)。 On Wed, 31 Jul 2002 00:29:09 +0900 Masahiro Sakai <s01...@sf...> wrote: > さかいです。 > > 各クラス毎に手で > rb_define_const(gWidget, "SIGNAL_SHOW", rb_str_new2("show")); > rb_define_const(gWidget, "SIGNAL_HIDE", rb_str_new2("hide")); > rb_define_const(gWidget, "SIGNAL_MAP", rb_str_new2("map")); > rb_define_const(gWidget, "SIGNAL_UNMAP", rb_str_new2("unmap")); > rb_define_const(gWidget, "SIGNAL_REALIZE", rb_str_new2("realize")); > のようなコードを書くのは面倒なので、 > これらを自動定義する関数を作ってみました。 void rbgobj_define_signal_constants(klass) そうすると、SIGNAL関係は手でコーディングする必要はなくなるんですか? すばらしい。 #rbgobj_define_class()に入れるのかな? なるべくこういう形で手コーディングを減らしていけば、自動化も 見えてくるかも....(まだあきらめてなかったり(^^;))。 ともかく、こういうのは歓迎です。 それでは。 -- .:% Masao Mutoh<mu...@hi...> |