search for: internal_evt_no_paramet

Displaying 7 results from an estimated 7 matches for "internal_evt_no_paramet".

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
...t;,argc); - - int idStart = NUM2INT(argv[0]); - int idEnd = NUM2INT(argv[1]); - //printf("evt_with_id(%d) %s\n", id, rb_block_given_p() ? "with block" : ""); - - internal_connect(self, idStart, idEnd, eventType); - return Qnil; -} - -static VALUE internal_evt_no_parameters(int argc, VALUE *argv, VALUE self, - wxEventType eventType) -{ - if (argc != 0) - rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); - - //printf("evt_no_parameters() %s\n", rb_block_given_p() ? "with block" : "");...
2006 Dec 24
0
[802] trunk/wxruby2/swig/classes: Add support for MenuEvent (MENU_OPEN, MENU_CLOSE, MENU_HIGHLIGHT)
...shEvent.klass; </span><span class="cx"> else if(event.IsKindOf(CLASSINFO(wxTextUrlEvent))) </span><span class="lines">@@ -1090,6 +1101,28 @@ </span><span class="cx"> { </span><span class="cx"> return internal_evt_no_parameters(argc, argv, self, wxEVT_DESTROY); </span><span class="cx"> } </span><ins>+ +static VALUE evt_menu_open(int argc, VALUE *argv, VALUE self) +{ + return internal_evt_no_parameters(argc, argv, self, wxEVT_MENU_OPEN); +} + +static VALUE evt_menu_close(int argc, V...
2007 Jun 23
0
[1060] trunk/wxruby2/swig/fixevents.rb: Include some previously missing events, rehash and simplify
...&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwhen 1 -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspfunc = "internal_evt_no_parameters" -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwhen 2 -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&a...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...IG_ConvertPtr(self, (void **) &cppSelf, SWIGTYPE_p_wxEvtHandler, 1); </span><span class="cx"> </span><span class="lines">@@ -1055,6 +1072,16 @@ </span><span class="cx"> { </span><span class="cx"> return internal_evt_no_parameters(argc, argv, self, wxEVT_ACTIVATE_APP); </span><span class="cx"> } </span><ins>+ +static VALUE evt_create(int argc, VALUE *argv, VALUE self) +{ + return internal_evt_no_parameters(argc, argv, self, wxEVT_CREATE); +} + +static VALUE evt_destroy(int argc, VALUE...
2006 Dec 31
0
[814] trunk/wxruby2/swig/classes: Added ScrollEvent class plus event processing and handler methods
...gt; } </span><span class="cx"> </span><del>- </del><span class="cx"> static VALUE evt_scrollwin_top(int argc, VALUE *argv, VALUE self) </span><span class="cx"> { </span><span class="cx"> return internal_evt_no_parameters(argc, argv, self, wxEVT_SCROLLWIN_TOP); </span></span></pre></div> <a id="trunkwxruby2swigclassesScrollEventi"></a> <div class="addfile"><h4>Added: trunk/wxruby2/swig/classes/ScrollEvent.i (0 => 814)</h4> <pre class=...
2007 Jun 25
0
[1066] trunk/wxruby2/swig: Move EVT constants in swig/classes/Event.i; add a few missing ones
...ntType eventType) -{ - if (argc != 2) - rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); - - int idStart = NUM2INT(argv[0]); - int idEnd = NUM2INT(argv[1]); - - internal_connect(self, idStart, idEnd, eventType); - return Qnil; -} - -static VALUE internal_evt_no_parameters(int argc, VALUE *argv, VALUE self, - wxEventType eventType) -{ - if (argc != 0) - rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); - internal_connect(self, -1, -1, eventType); - return Qnil; -} - -%} </del></span></pre></div&g...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...gc,argv,self); - evt_middle_dclick(argc,argv,self); - evt_right_dclick(argc,argv,self); - evt_leave_window(argc,argv,self); - evt_enter_window(argc,argv,self); - return evt_mousewheel(argc,argv,self); -} -FUNC_DEF - next - end - - func = case evt.type - when 1 : "internal_evt_no_parameters" - when 2 : "internal_evt_with_id" - when 3 : "internal_evt_with_id_range" - end - - out.puts "#ifdef __WXMSW__" if evt.windows_only? - out.puts <<FUNC_DEF -static VALUE #{evt.name.downcase}(int argc, VALUE *argv, VALUE self) - { retur...