search for: numinputs

Displaying 14 results from an estimated 14 matches for "numinputs".

Did you mean: num_inputs
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?
2012 May 06
1
[mesa PATCH] nv50: handle VP without inputs
...info->in[i].slot[c] = n++; } + + // Corner case: VP has no inputs, but we will still need to submit data to + // draw it. HW will shout at us and won't draw anything if we don't enable + // any input, so let's just pretend it's the first one. + if (info->numInputs == 0) + prog->vp.attrs[0] |= 0xf; + prog->in_nr = info->numInputs; for (i = 0; i < info->numSysVals; ++i) { -- 1.7.8.5
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());
2007 May 05
0
[1016] trunk/wxruby2/swig/classes/StatusBar.i: Remove directors from StatusBar''s methods as don''t seem to need them, (Bug:6809)
...ldsCount) that are marked ''virtual'', but can''t be +// usefully re-implemented in Ruby. +%feature("nodirector"); </ins><span class="cx"> </span><ins>+// For GetFieldsRect </ins><span class="cx"> %typemap(in,numinputs=0) (wxRect& rect) </span><span class="cx"> { </span><span class="cx"> $1 = new wxRect; </span><span class="lines">@@ -24,7 +26,7 @@ </span><span class="cx"> } </span><span class="cx"&g...
2006 Nov 24
0
[756] trunk/wxruby2/swig: Moved one-shot typemaps for ListBox.get_selections into ListBox.i
...pan><span class="lines">@@ -21,6 +21,28 @@ </span><span class="cx"> // end client_data fixes </span><span class="cx"> </span><span class="cx"> </span><ins>+// typemaps for GetSelections() +%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& select...
2007 May 19
0
[1020] trunk/wxruby2/swig/classes/FileDialog.i: Added the Wx::FD_XXX constants for FileDialog variants
...0x0001, + wxFD_SAVE = 0x0002, + wxFD_OVERWRITE_PROMPT = 0x0004, + wxFD_FILE_MUST_EXIST = 0x0010, + wxFD_MULTIPLE = 0x0020, + wxFD_CHANGE_DIR = 0x0080, + wxFD_PREVIEW = 0x0100 +}; + </ins><span class="cx"> %typemap(in,numinputs=0) wxArrayString &(wxArrayString sel) </span><span class="cx"> { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp$1 = &sel; </span></span></pre> </div> </div> </bod...
2007 Apr 29
0
[986] branches/wxruby2/wxwidgets_282/swig/classes/Frame.i: Default constructor is required for use with XRC
...ame </span><span class="cx"> </span><del>-%ignore wxFrame::wxFrame(); - </del><span class="cx"> %apply SWIGTYPE *DISOWN { wxMenuBar * } </span><span class="cx"> </span><span class="cx"> %typemap(in,numinputs=1) (int n, int * widths) (int size, int i, int *arr){ </span></span></pre> </div> </div> </body> </html>
2007 Jul 18
0
[1119] trunk/wxruby2/swig/Functions.i: Avoid erroneous ''parent must not be nil'' errors when using global
...mp;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp "Cannot display dialog before App.main_loop has been called");} +} + </ins><span class="cx"> %typemap(in,numinputs=0) wxArrayInt &selections (wxArrayInt sel) </span><span class="cx"> { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp$1 = &sel; </span></span></pre> </div> </div> &lt...
2006 Dec 31
0
[816] trunk/wxruby2: Added AcceleratorTable and AcceleratorTable classes, plus documentation
...inform SWIG about the existence +// of the wxAcceleratorEntry class, so that it creates the typed pointer +// definition _p_wxAcceleratorEntry +%extend wxAcceleratorTable { VALUE bogus__(wxAcceleratorEntry) { } } + + +// For constructor, accepts an array of Wx::AcceleratorEntry objects +%typemap(in,numinputs=1) (int n, wxAcceleratorEntry entries[]) (wxAcceleratorEntry *arr) +{ + if (($input == Qnil) || (TYPE($input) != T_ARRAY)) + { + $1 = 0; + $2 = NULL; + } + else + { + wxAcceleratorEntry *wx_acc_ent; + arr = new wxAcceleratorEntry[RARRAY($input)->len]; + for (int i = 0; i <...
2007 Apr 13
0
[961] branches/wxruby2/wxwidgets_282/swig: Move wxDateTime typemap into shared file, map to core Time class instead
...) const wxDateTime& { -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp$1 = (TYPE($input) != T_NONE); -} - -%apply int { wxDateTime::WeekDay } - -############################################################## - - </del><span class="cx"> %typemap(in,numinputs=1) (int n, const wxString choices []) (wxString *arr) </span><span class="cx"> { </span><span class="cx"> if (($input == Qnil) || (TYPE($input) != T_ARRAY)) </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 -
2015 May 17
14
[PATCH 00/12] Tessellation support for nvc0
This is enough to enable tessellation support on nvc0. It seems to work a lot better on my GF108 than GK208. I suspect that there's some sort of scheduling shenanigans that need to be adjusted for kepler+. Or perhaps some shader header things. Even with the GF108, I still get occasional blue triangles in Heaven, but I get a *ton* of them on the GK208 -- seemingly the same issue, but it's
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...ng * redirect ) const; + +// TODO: fix typemaps so that on_opening_url will be called in subclass method. +// The default typemap for WxString. * is not correct for this method, but ignore doesn''t seem to be working (SWIG 1.3.29). The typemaps below 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...
2014 Jan 13
20
[PATCH 00/19] nv50: add sampler2DMS/GP support to get OpenGL 3.2
OK, so there's a bunch of stuff in here. The geometry stuff is based on the work started by Bryan Cain and Christoph Bumiller. Patches 01-12: Add support for geometry shaders and fix related issues Patches 13-14: Make it possible for fb clears to operate on texture attachments with an explicit layer set (as is allowed in gl 3.2). Patches 15-17: Make ARB_texture_multisample work