search for: arrayint

Displaying 3 results from an estimated 3 matches for "arrayint".

Did you mean: arrayind
2005 Sep 13
3
Swig hates us...
Swig is making mincemeat out of ComboBox.new. Because of the way it''s picking the ''correct'' one to call it''s calling with a null name instead of a default name. How did we fix this before?
2007 Mar 31
0
[935] branches/wxruby2/wxwidgets_282/doc/textile/listbox.txtl: Correct method signature of Listbox#get_selections method
...="lines">@@ -126,22 +126,11 @@ </span><span class="cx"> </span><span class="cx"> h3(#ListBox_getselections). ListBox#get_selections </span><span class="cx"> </span><del>- Integer *get_selections*(%(arg-type)ArrayInt% selections) </del><ins>+ Array *get_selections*() </ins><span class="cx"> </span><del>-Fill an array of ints with the positions of the currently selected items. </del><ins>+Returns an array of integers corresponding to the selected items i...
2007 Jan 08
0
[845] trunk/wxruby2/swig/classes: Added MultiChoiceDialog in class form
...4-2007 by Kevin Smith +# released under the MIT-style wxruby2 license + +%include "../common.i" + +%module(directors="1") wxMultiChoiceDialog + +%{ +#include <wx/choicdlg.h> +%} + +// for SetSelections - note that GetSelectiosn is dealt with the standard +// typemap(out) ArrayInt in typemap.i +%typemap(in) const wxArrayInt& selections (wxArrayInt tmp){ + if (($input == Qnil) || (TYPE($input) != T_ARRAY)) + { + $1 = &tmp; + } + else + { + for (int i = 0; i < RARRAY_LEN($input); i++) + { + int item = NUM2INT(rb_ary_entry($input,i)); + tmp.Ad...