Displaying 2 results from an estimated 2 matches for "swigtype_p_wxfont".
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?
2006 Aug 15
0
Problem with directors and Ruby
...eturn;
}
obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&string),
SWIGTYPE_p_wxString, 0 );
obj1 = SWIG_NewPointerObj(SWIG_as_voidptr(x), SWIGTYPE_p_int, 0 );
result = rb_funcall(swig_get_self(), rb_intern("GetTextExtent"),
2,obj0,obj1);
obj1 should be font and its type should be SWIGTYPE_p_wxFont. I''m using
SWIG 1.3.29 on Windows XP. Attached is the .i file. At the bottom of
the message is the command line I use with SWIG. It''s entirely possible
I just misunderstand something about the way this is supposed to work
but I''ve pored over the help files many ti...