search for: register_func

Displaying 2 results from an estimated 2 matches for "register_func".

2007 Jun 23
0
[1060] trunk/wxruby2/swig/fixevents.rb: Include some previously missing events, rehash and simplify
...p;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspout.puts "#ifdef __WXMSW__" if windows - -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspout.puts <<REGISTER_FUNC -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_define_method(cWxEvtHandler.klass, \"#{evt[0].downcase}\", VALUEFUNC(#{evt[0].downcase}),-1); </del><ins>+ out.puts "#ifdef __WXMSW__" if evt.windows_only? + out.puts <<REGISTER_F...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...Then we loop over the events and register the ruby method for each - out.puts <<INIT_FUNC -extern "C" { -void Init_wxEvents2() -{ -INIT_FUNC - $events.each do | evt | - next if evt.excluded? - - out.puts "#ifdef __WXMSW__" if evt.windows_only? - out.puts <<REGISTER_FUNC -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_define_method(cWxEvtHandler.klass, \"#{evt.name.downcase}\", VALUEFUNC(#{evt.name.downcase}),-1); -REGISTER_FUNC - out.puts "#endif //__WXMSW__" if evt.windows_only? - end - - out.puts "}"...