Displaying 3 results from an estimated 3 matches for "swigtype_p_int".
2005 Oct 06
9
Grid.GetTextExtent
...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());
obj1 = SWIG_NewPointerObj(x, SWIGTYPE_p_int, 0);
result = rb_funcall(swig_get_self(), rb_intern("get_text_extent"),
2,obj0,obj1);
Wow. That''s just so wrong. It only converts two parameters and the one
it chooses to convert shouldn''t be passed in any case. Any suggestions
on this one?
Roy
2006 Aug 15
0
Problem with directors and Ruby
...st {
VALUE obj0 = Qnil ;
VALUE obj1 = Qnil ;
VALUE result;
if (swig_get_up()) {
wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font);
return;
}
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 S...
2005 Aug 04
9
wxruby2 retooling
I finally gave up on swig 1.3.22, since it seems to be causing too many
problems. Ubuntu breezy will have 1.3.24, so I''m retargeting wxruby2 to
swig 1.3.24+. At the moment, I have 1.3.25 on my system, since that''s
the current release.
I''m finding all kinds of problems with the post-processors we have that
clean up the .cpp files that swig creates. The