search for: swigtype

Displaying 15 results from an estimated 15 matches for "swigtype".

Did you mean: sigtype
2007 Jul 21
0
[1129] trunk/wxruby2/swig/classes/Window.i: Add DISOWN typemap for ToolTip so it isn''t double-deleted
...t;> </span><span class="cx"> %rename(SetDimensions) wxWindow::SetSize(int x , int y , int width , int height , int sizeFlags = wxSIZE_AUTO) ; </span><span class="cx"> </span><del>-// Caret set by set_caret becomes owned by C++ -%apply SWIGTYPE *DISOWN {wxCaret* caret}; </del><ins>+// Any of these following kind of objects become owned by the window +// when passed into Wx, and so will be deleted automatically; using +// DISOWN resets their %freefunc to avoid deleting the object twice +%apply SWIGTYPE *DISOWN {wxCaret* caret}...
2007 Mar 18
0
[896] branches/wxruby2/wxwidgets_282/swig/classes/Grid.i: Added DISOWN typemap to prevent free_GridCellRenderer crash on GC/exit
...7-03-18 10:39:12 UTC (rev 896) </span><span class="lines">@@ -9,8 +9,9 @@ </span><span class="cx"> #include <wx/grid.h> </span><span class="cx"> %} </span><span class="cx"> </span><ins>+%apply SWIGTYPE *DISOWN { wxGridCellAttr* attr }; </ins><span class="cx"> %apply SWIGTYPE *DISOWN { wxGridCellEditor* editor }; </span><del>-%apply SWIGTYPE *DISOWN { wxGridCellAttr* attr }; </del><ins>+%apply SWIGTYPE *DISOWN { wxGridCellRenderer* renderer }; </ins...
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...get_children etc - -// TODO - doesn''t work correctly with object tracking - it should return -// the same Ruby object if the object has been seen before -// use something like: -//&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp returnVal = SWIG_NewPointerObj(obj, SWIGTYPE_p_wxWindow, 0); -// but this causes problems for when a new Ruby object is needed - eg with XRC </del><ins>+// Returns a ruby wrapper around a wxObject whose wx class is not known +// in advance - needed for find_window, get_children etc This is a bit +// complicated because it must che...
2007 Jun 01
0
[1044] trunk/wxruby2: Special memory management for Wx::Grid
...ass="cx"> </span><ins>+ +// Memory management is needed for these classes in addition to *DISOWN +// to prevent premature ruby GC. To save a lot of messy C++ The work is +// done in pure ruby - see lib/wx/classes/grid.rb </ins><span class="cx"> %apply SWIGTYPE *DISOWN { wxGridCellAttr* attr }; </span><span class="cx"> %apply SWIGTYPE *DISOWN { wxGridCellEditor* editor }; </span><span class="cx"> %apply SWIGTYPE *DISOWN { wxGridCellRenderer* renderer }; </span></span></pre> </div> </di...
2007 Feb 14
0
[872] trunk/wxruby2/swig/classes/Grid.i: Prevent GC prematurely cleaning up Grid-related classes
...7-02-14 18:46:20 UTC (rev 872) </span><span class="lines">@@ -9,6 +9,8 @@ </span><span class="cx"> #include <wx/grid.h> </span><span class="cx"> %} </span><span class="cx"> </span><ins>+%apply SWIGTYPE *DISOWN { wxGridCellEditor* editor }; +%apply SWIGTYPE *DISOWN { wxGridCellAttr* attr }; </ins><span class="cx"> </span><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> %import "include/wxEvtHan...
2007 Mar 18
0
[897] branches/wxruby2/wxwidgets_282/swig/classes/Window.i: DISOWN typemap to prevent crash on GC/exit when caret has been set (bug #9093)
...t;> </span><span class="cx"> %rename(SetDimensions) wxWindow::SetSize(int x , int y , int width , int height , int sizeFlags = wxSIZE_AUTO) ; </span><span class="cx"> </span><ins>+// Caret set by set_caret becomes owned by C++ +%apply SWIGTYPE *DISOWN {wxCaret* caret}; + </ins><span class="cx"> // Any sizers passed in to wx become owned by C++ </span><span class="cx"> %apply SWIGTYPE *DISOWN {wxSizer* sizer}; </span><span class="cx"> </span></span></pre&g...
2007 Feb 14
0
[873] trunk/wxruby2/swig/classes/GridCellAttr.i: Prevent GC prematurely cleaning up GridCellAttr-related classes
...lass="cx"> #include <wx/grid.h> </span><span class="cx"> %} </span><span class="cx"> </span><del>-#This is to get arround SWIG trying to call a protected destructor -%nodefault wxGridCellAttr; </del><ins>+%apply SWIGTYPE *DISOWN { wxGridCellEditor* editor }; +%apply SWIGTYPE *DISOWN { wxGridCellRenderer* renderer }; </ins><span class="cx"> </span><ins>+// This is to get arround SWIG trying to call a protected destructor +%nodefaultdtor wxGridCellAttr; + </ins><span class=...
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...t;<ins>+// shared functions for GC marking +%include "../shared/sizers.i" +%markfunc wxSizer "mark_wxSizer"; </ins><span class="cx"> </span><del>-// Any nested sizers passed to Add() in are owned by C++, not GC''d by Ruby -%apply SWIGTYPE *DISOWN { wxSizer* sizer }; - </del><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> </span><span class="cx"> %include "include/wxSizer.h" </span></span></pre></div>...
2012 Mar 19
1
Gsoc: SWIG-based Java Bindings
Hello all, I am interested in the project: SWIG-based java bindings. It says a few things of Java bindings generated by SWIG don't work. Could you point out which particular part does not work? -- Best Regards, Sabrina -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Apr 29
0
[986] branches/wxruby2/wxwidgets_282/swig/classes/Frame.i: Default constructor is required for use with XRC
...+5,6 @@ </span><span class="cx"> </span><span class="cx"> %module(directors="1") wxFrame </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 Jan 06
0
[837] trunk/wxruby2/swig/classes/Notebook.i: Added DISOWN typemap to avoid segfault on exit on GTK
..."> </span><span class="cx"> #define wxNotebookPage wxWindow </span><span class="cx"> </span><ins>+// Protect panels etc added as Notebook pages from being GC''d by Ruby; +// avoids double-free segfaults on exit on GTK +%apply SWIGTYPE *DISOWN { wxNotebookPage* page }; + + </ins><span class="cx"> %ignore wxNotebook::wxNotebook(); </span><span class="cx"> %ignore wxNotebook::OnSelChange; </span><span class="cx"> </span></span></pre> </div> &...
2007 Jul 19
0
[1121] trunk/wxruby2/swig/classes/PreviewFrame.i: Avoid double-free error on PrintPreview once attached to a PreviewFrame
...t;span class="cx"> %} </span><span class="cx"> </span><ins>+ +// Once a PrintPreview is associated with a PreviewFrame, it is deleted +// automatically by wxWidgets - so must avoid calling its destructor +// from Ruby when it is GC''d. +%apply SWIGTYPE *DISOWN {wxPrintPreview* preview}; + </ins><span class="cx"> %rename(init) Initialize; </span><span class="cx"> </span><span class="cx"> %import "include/wxObject.h" </span></span></pre> </div> <...
2006 Dec 23
0
[798] trunk/wxruby2/swig/classes/Bitmap.i: Prevent Mask on Bitmap from being GC''d and causing double-free (bug #6808)
...+22,8 @@ </span><span class="cx"> %ignore Create(void* data , int type , int width , int height , int depth = -1) ; </span><span class="cx"> %ignore wxBitmap::SetPalette; </span><span class="cx"> </span><ins>+%apply SWIGTYPE *DISOWN { wxMask* mask }; + </ins><span class="cx"> %{ </span><span class="cx"> #include <wx/image.h> </span><span class="cx"> %} </span></span></pre> </div> </div> </body> </html>
2007 Jan 05
0
[828] trunk/wxruby2/swig/classes/Sizer.i: Ensure that nested Sizers are disowned and not GC''d (fixes segfault at exit)
...t;<span class="cx"> </span><span class="cx"> %feature("nodirector") wxSizer::CalcMin; </span><span class="cx"> </span><ins>+// Any nested sizers passed to Add() in are owned by C++, not GC''d by Ruby +%apply SWIGTYPE *DISOWN { wxSizer* sizer }; + </ins><span class="cx"> %import "include/wxObject.h" </span><span class="cx"> </span><span class="cx"> %include "include/wxSizer.h" </span></span></pre> </div&gt...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...;nbsp&nbsp2007-07-04 22:50:43 UTC (rev 1108) </span><span class="lines">@@ -3,29 +3,3 @@ </span><span class="cx"> // Any nested sizers passed to Add() in are owned by C++, not GC''d by Ruby </span><span class="cx"> %apply SWIGTYPE *DISOWN { wxSizer* sizer }; </span><span class="cx"> </span><del>- -// Whilst sizers that are directly managing Windows will be marked, -// those that are contained within other sizers need to be explicitly -// handled: -%{ -static void mark_wxSizer(void *ptr) -{...