Displaying 3 results from an estimated 3 matches for "num2long".
2007 Mar 17
0
[888] branches/wxruby2/wxwidgets_282/swig/shared/treeitemid_typemaps.i: Fix compile warning for TreeItemId typemap (Artur Kuptel)
...ass="cx"> // These typemaps are used by TreeCtrl and TreeEvent to convert wx tree
</span><span class="cx"> // item ids into simple
</span><span class="cx">
</span><del>-%typemap(in) wxTreeItemId& "$1 = new wxTreeItemId(NUM2LONG($input));"
</del><ins>+%typemap(in) wxTreeItemId& "$1 = new wxTreeItemId((void*)NUM2LONG($input));"
</ins><span class="cx"> %typemap(out) wxTreeItemId "$result = LONG2NUM( (long)$1.m_pItem );"
</span><span class="cx"&...
2007 Jan 05
0
[831] trunk/wxruby2: Use simple ruby Integers to represent TreeItemIds
...;nbsp 2007-01-05 23:19:57 UTC (rev 831)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+// These typemaps are used by TreeCtrl and TreeEvent to convert wx tree
+// item ids into simple
+
+%typemap(in) wxTreeItemId& "$1 = new wxTreeItemId(NUM2LONG($input));"
+%typemap(out) wxTreeItemId "$result = LONG2NUM( (long)$1.m_pItem );"
+%typemap(directorin) wxTreeItemId& "$input = LONG2NUM( (long)$1.m_pItem );"
+%typemap(directorout) wxTreeItemId& "$result = new wxTreeItemId(NUM2LONG($1));"
+%typemap(freearg...
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note
the new %directorargout typemap I added to fix wxWindows calling into
SWIG. I don''t know if this can fix all such problems or not. Let me
know what you think.
I also rubified the sample a little bit more. Also, note that I fix the
<< operator so the function can be called. I hope I did this right.
Roy