search for: mb_str

Displaying 10 results from an estimated 10 matches for "mb_str".

Did you mean: mb_st
2005 Oct 09
0
[Fwd: Re: [Swig] Re: Object return problem]
...%typemap(freearg) const wxString& { >> delete $1; >> } >> >> %typemap(freearg) wxString* { >> delete $1; >> } >> */ >> %typemap(directorin) wxString, const wxString &, wxString & "$input = >> rb_str_new2((const char *)$1.mb_str());"; >> >> %typemap(directorin) wxString *, const wxString * "TODO: >> $1_name->mb_str()"; >> >> >> %typemap(out) wxString { >> $result...
2005 Oct 06
9
Grid.GetTextExtent
...TextExtent(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()); 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...
2005 Sep 23
2
FileDialog.i patch
Here''s a patch for FileDialog.i. Seems we had never removed that #ifdef in there. wxWindows 2.6.2 works just fine on Windows. No other news. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...sp&nbsp&nbsp&nbsp&nbsp&nbsp{ </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return Qnil; </del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp r_class = rb_iv_get(mWxruby2, class_name.mb_str() + 2); </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp...
2006 Dec 20
0
[789] trunk/wxruby2/swig/classes/Window.i: Make GetChildren work (tho general fix for get_ruby_object still needed)
...; &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE ruby_class = rb_iv_get(mWxruby2, classNameString.mb_str()+2); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturnVal = Data_Wrap_Struct(ruby_class,0,0,obj); </del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp...
2007 Jun 25
0
[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter
...te $1;" +%typemap(freearg) wxString* "if ( argc > $argnum - 2 ) delete $1;" </ins><span class="cx"> </span><span class="cx"> %typemap(directorin) wxString, const wxString &, wxString & "$input = rb_str_new2((const char *)$1.mb_str());"; </span><span class="cx"> </span></span></pre> </div> </div> </body> </html>
2005 Mar 14
11
[Fwd: Re: Help a newbie pick a gui tool kit]
Hey Guys, This just came over the rubytalk list. Does anybody have any Debian experience? BTW, one thing this project *really* could use is people to package wxruby for <your distro here>. You don''t need SWIG/C++ experience for it, and a little work could help a lot of people. Nick -------- Original Message -------- Subject: Re: Help a newbie pick a gui tool kit Date: Sun, 13
2007 Jun 28
0
[1095] trunk/wxruby2: Remove useless methods from Wx::Object and add wx_class method for info; document
...ass + VALUE wxwx_class() { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxString class_name( self->GetClassInfo()->GetClassName() ); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE rb_class_name = rb_str_new2((const char *)class_name.mb_str(wxConvUTF8)); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspreturn rb_class_name; + } +} + </ins><span class="cx"> %include "include/wxObject.h" </span></span></pre> </div> </div> </body> </html>
2006 Nov 06
3
HtmlWindow and friends
Hi Attached is a patch to add HtmlWindow and some of its friends, including HtmlEasyPrinting. Also a sample. I haven''t tried exposing the parsing and rendering API yet to allow custom tags etc - I just wanted to get basic HTML and the 0.6.0 compatibility classes first. There may well be some quite easy classes left. There''s one ugly kludge to get OnOpeningURL to compile -
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...just stop a compile error +%typemap(in, numinputs=0) wxString * redirect "//*$1 = *$1;"; +%typemap(directorargin) wxString * redirect "$1 = obj2;"; +%typemap(directorargout, fragment="output_helper") wxString * redirect { + //VALUE o = rb_str_new2((const char*)$1->mb_str()); + //$result = output_helper($result, o); +} + +%import "include/wxObject.h" +%import "include/wxEvtHandler.h" +%import "include/wxWindow.h" +%import "include/wxPanel.h" +%import "include/wxScrolledWindow.h" + +%include "include/wxHtmlWindo...