search for: wx_acc_ent

Displaying 1 result from an estimated 1 matches for "wx_acc_ent".

2006 Dec 31
0
[816] trunk/wxruby2: Added AcceleratorTable and AcceleratorTable classes, plus documentation
...} + + +// For constructor, accepts an array of Wx::AcceleratorEntry objects +%typemap(in,numinputs=1) (int n, wxAcceleratorEntry entries[]) (wxAcceleratorEntry *arr) +{ + if (($input == Qnil) || (TYPE($input) != T_ARRAY)) + { + $1 = 0; + $2 = NULL; + } + else + { + wxAcceleratorEntry *wx_acc_ent; + arr = new wxAcceleratorEntry[RARRAY($input)->len]; + for (int i = 0; i < RARRAY($input)->len; i++) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_ConvertPtr(rb_ary_entry($input,i), (void **) &wx_acc_ent, SWIGTYPE_p_wxAcceleratorEntry, 1)...