search for: firstid

Displaying 6 results from an estimated 6 matches for "firstid".

Did you mean: firsti
2007 Jun 23
0
[1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
.../ here. Instead, they are defined by Events.cpp, generated from +// swig/Event.i and modified by swig/fixevents.rb </ins><span class="cx"> </span><ins>+// This provides the public Ruby ''connect'' method +%extend wxEvtHandler { + VALUE connect(int firstId, int lastId, wxEventType eventType) + { + VALUE func = rb_funcall(rb_cProc, rb_intern("new"), 0); + rb_global_variable(&callbacks); + if(callbacks == Qnil) + callbacks = rb_ary_new(); + rb_ary_push(callbacks, func); + + wxObject* userData = new wxRbCallback(func...
2007 Jun 23
0
[1064] trunk/wxruby2/swig/Events.i: Removed unused func, updated comments
...ia ''connect'' +// Internal method that links a ruby Proc (the block passed to evt_xxx) +// to the WxWidgets C++ event handler method. </ins><span class="cx"> extern swig_class cWxEvtHandler; </span><ins>+extern void internal_connect(VALUE self, int firstId, int lastId, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...n><span class="cx"> cEvent = cWxSashEvent.klass; </span><span class="cx"> #ifdef WXSCINTILLA </span><span class="lines">@@ -411,7 +429,6 @@ </span><span class="cx"> void internal_connect(VALUE self, int firstId, int lastId, </span><span class="cx"> wxEventType eventType) </span><span class="cx"> { </span><del>- </del><span class="cx"> wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ; </span><span cla...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
...;>@@ -541,783 +541,6 @@ </span><span class="cx"> %} </span><span class="cx"> </span><span class="cx"> </span><del>-#if 0 -%{ - static VALUE callbacks = Qnil; -%} - -%{ -static void internal_connect(VALUE self, int firstId, int lastId, - wxEventType eventType) -{ - - wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ; - SWIG_ConvertPtr(self, (void **) &cppSelf, SWIGTYPE_p_wxEvtHandler, 1); - - VALUE func = rb_funcall(rb_cProc, rb_intern("new"), 0); - rb_global_variable(&callback...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...lt;/span><span class="cx"> </span><del>- </del><ins>+// Internal method that links a ruby Proc (the block passed to evt_xxx) +// to the WxWidgets C++ event handler method. </ins><span class="cx"> void internal_connect(VALUE self, int firstId, int lastId, </span><span class="cx"> wxEventType eventType) </span><span class="cx"> { </span></span></pre></div> <a id="trunkwxruby2swigfixeventsrb"></a> <div class="modfile"&gt...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...n fact all the evt_xxx -// methods could now be implemented in ruby via ''connect'' -// Internal method that links a ruby Proc (the block passed to evt_xxx) -// to the WxWidgets C++ event handler method. -extern swig_class cWxEvtHandler; -extern void internal_connect(VALUE self, int firstId, int lastId, -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&...