Displaying 13 results from an estimated 13 matches for "wxcaret".
2007 Jul 21
0
[1130] trunk/wxruby2/swig/classes/Caret.i: Make Caret managed as object, so it is cleaned up properly when not
...sp  2007-07-21 12:21:33 UTC (rev 1130)
</span><span class="lines">@@ -8,15 +8,15 @@
</span><span class="cx"> %}
</span><span class="cx">
</span><span class="cx"> %module(directors="1") wxCaret
</span><del>-GC_MANAGE(wxCaret);
-%ignore wxCaret::wxCaret() ;
-%ignore wxCaret::wxCaret(wxWindow* window , int width , int height ) ;
</del><ins>+GC_MANAGE_AS_OBJECT(wxCaret);
</ins><span class="cx">
</span><ins>+%ignore wxCaret::wxCa...
2005 Sep 03
0
Good news on the crashing problem
...crashing. But several other samples, such as caret, would crash upon exit.
A quick gdb stacktrace showed that ruby was attempting to free an object
that wx had already deleted. We have protection against that (added
post-swig by fixdeleting.rb), but it wasn''t working in this case for
wxCaret. Turns out that our wxCaret.h didn''t have any virtual methods,
so swig wasn''t creating a director class, and fixdeleting only works for
classes that have directors.
In this case, it turned out the wxCaret docs incorrectly omitted the
virtual keyword from two methods. I added v...
2006 Apr 19
1
Rubyfication of wxWindows
...nt to have aliases for all
renamed methods?
Example:
wxPen::Ok
*bool* *Ok*() *const*
Returns true if the pen is initialised.
The ''correct'' Ruby way to do this would be: ''ok?'' Should we also
keep ''ok''?
Another example:
wxCaret::IsOk
*bool* *IsOk*() *const*
Returns true if the caret was created successfully.
One possibly ''correct'' Ruby way to do this, also, is: ''ok?'' Should we
also have an ''is_ok?'' How about ''is_ok''?
There are quite a number o...
2007 Jul 21
0
[1129] trunk/wxruby2/swig/classes/Window.i: Add DISOWN typemap for ToolTip so it isn''t double-deleted
...gt;<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};
+%apply SWIGTYP...
2005 Sep 13
1
TextValidator added
Here are the patches needed to add TextValidator. I actually did this
one a while back and forgot about it until I needed it today.
Sean
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...( rb_sizer != Qnil )
-                GC_mark_SizerBelongingToWindow(wx_sizer, rb_sizer);
-        }
-
- wxCaret* wx_caret = wx_win->GetCaret();
- if ( wx_caret )
-        {
-         VALUE rb_caret = SWIG_RubyInstanceFor(wx_caret);
-     ...
2007 Jul 21
0
[1127] trunk/wxruby2: Move shared C++ GC functions into separate file included into wx.i
...( rb_sizer != Qnil )
+                GC_mark_SizerBelongingToWindow(wx_sizer, rb_sizer);
+        }
+
+ wxCaret* wx_caret = wx_win->GetCaret();
+ if ( wx_caret )
+        {
+         VALUE rb_caret = SWIG_RubyInstanceFor(wx_caret);
+     ...
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)
...gt;<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>
</div>
&...
2007 Jul 20
0
[1123] trunk/wxruby2/swig/wx.i: Check sizers being marked have a ruby rep and are not internal Wx-only,
...bsp   GC_mark_SizerBelongingToWindow(wx_sizer, rb_sizer);
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx"> wxCaret* wx_caret = wx_win->GetCaret();
</span></span></pre>
</div>
</div>
</body>
</html>
2007 May 22
0
[1032] trunk/wxruby2/swig: Preserve Sizers associated with Windows from GC; fix several sample
...         VALUE rb_sizer = SWIG_RubyInstanceFor(wx_sizer);
+         rb_gc_mark(rb_sizer);
+        }
+
+ wxCaret* wx_caret = wx_win->GetCaret();
+ if ( wx_caret )
+        {
+         VALUE rb_caret = SWIG_RubyInstanceFor(wx_caret);
+     ...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...amp;nbsp    /**
-         * \brief Returns the associated with the window.
-        */
-
</del><span class="cx"> wxCaret * GetCaret() const;
</span><del>-        /**
-         * \brief
-        */
-
</del><...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...sp     GC_mark_SizerBelongingToWindow(wx_sizer);
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx"> wxCaret* wx_caret = wx_win->GetCaret();
</span><span class="lines">@@ -51,7 +77,6 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span cla...
2007 Mar 17
0
[883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
...AdjustedBestSize() const;
</del><ins>+ wxSize GetEffectiveMinSize() const;
</ins><span class="cx"> wxColour GetBackgroundColour() const;
</span><span class="cx"> wxSize GetBestSize() const;
</span><span class="cx"> wxCaret * GetCaret() const;
</span><span class="lines">@@ -81,7 +83,6 @@
</span><span class="cx"> wxSize GetSize() const;
</span><span class="cx"> wxSizer * GetSizer() const;
</span><span class="cx"> virtual void...