Displaying 4 results from an estimated 4 matches for "argout".
Did you mean:
nargout
2005 Sep 10
2
Swig generates bad interface to GetTextExtent
Swig''s bad interface generation strikes again. get_text_extent called
with 1 argument maps to WindowDC''s _wrap_wxWindowDC_GetTextExtent__SWIG_0
Since this generates a wxFont that''s not initialized to nil it fails
when calling into wxWindows. Anyone have a suggestion?
2005 Oct 06
9
Grid.GetTextExtent
Wow. Look what SWIG does to GetTextExtent in Grid.cpp:
void SwigDirector_wxGrid::GetTextExtent(wxString const &string, int *x,
int *y, int *descent, int *externalLeading, wxFont const *font) const {
...
if (swig_get_up()) {
wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font);
return;
}
obj0 = rb_str_new2((const char *)(&string)->mb_str());
2006 Nov 24
0
[756] trunk/wxruby2/swig: Moved one-shot typemaps for ListBox.get_selections into ListBox.i
...ctions()
+%typemap(in,numinputs=0) (wxArrayInt& selections) (wxArrayInt tmp) {
+ $1 = &tmp;
+}
+
+%typemap(out) (wxArrayInt& selections) {
+ $result = rb_ary_new();
+ for (int i = 0; i < $1.GetCount(); i++)
+ {
+ rb_ary_push($result,INT2NUM( $1.Item(i) ) );
+ }
+}
+
+%typemap(argout) (wxArrayInt& selections) {
+ $result = rb_ary_new();
+ for (int i = 0; i < ($1)->GetCount(); i++)
+ {
+ rb_ary_push($result,INT2NUM( ($1)->Item(i) ) );
+ }
+}
+// end typemaps for GetSelections()
+
</ins><span class="cx"> %import "include/wxObjec...
2006 Nov 23
0
[752] trunk/wxruby2: Fix for Bug #6810: ListBox#get_selections should return an array of selections
...;nbsp 2006-11-23 05:58:43 UTC (rev 752)
</span><span class="lines">@@ -395,6 +395,16 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+%typemap(argout) (wxArrayInt& selections) {
+
+ $result = rb_ary_new();
+
+ for (int i = 0; i < ($1)->GetCount(); i++)
+ {
+ rb_ary_push($result,INT2NUM( ($1)->Item(i) ) );
+ }
+}
+
</ins><span class="cx"> ##############################################################...