search for: swig_get_self

Displaying 5 results from an estimated 5 matches for "swig_get_self".

2005 Oct 06
9
Grid.GetTextExtent
...ng, 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 24
5
TreeCtrl background?
On my windows build, I just noticed that the background of my TextCtrl''s is grey by default, and when I try to set the default style I get the error: TestTextCtrl.rb:15:in `set_default_style'': undefined method `'' for #<Wxruby2::TextCtrl:0x360a0c4> (NoMethodError) from TestTextCtrl.rb:15:in `initialize'' from TestTextCtrl.rb:24:in
2005 Aug 21
15
New inheritance
A good number of the samples I have tested are outright or subtly broken on Windows now. I''m trying to determine what the cause is. Mostly it seems related to the initialize function not being created when it should be. Case in point: ClientDC.i The caret example won''t work at all because initialize isn''t declared any longer. If you comment out the import
2006 Aug 15
0
Problem with directors and Ruby
...l ; 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 SWIG. It''s entirely possible I j...
2007 Mar 15
6
Patch to 0.0.39
Hi I''m developing software using wxruby2. At first I tried to use wxruby 0.6 but I couldn''t live without some of those new funky features :) So, instead of writing my own code, I got a bit sidetracked and wrote http://rubyforge.org/tracker/index.php?func=detail&aid=9297&group_id=35&atid=220 instead. Seeing as this is my first foray in to the innards of wxruby2, I