Displaying 4 results from an estimated 4 matches for "swigtype_p_wxpaintdc".
2007 Mar 21
4
Problem with PaintDC(MSW)
When implementing EVT_PAINT handlers in c++ the PaintDC object is
constructed at the beginning of the function,
and auto destructed at it''s end, which informs wxwidgets that "invalid
regions in the window have been repainted".
Under ruby, this is not the case and causes a stream of EVT_PAINT events
to be sent to the given window (until one
of PaintDC objects is destructed by
[707] trunk/wxruby2/swig/classes/Window.i: Window-paint method now implemented in Ruby (Alex Fenton)
2006 Oct 22
0
[707] trunk/wxruby2/swig/classes/Window.i: Window-paint method now implemented in Ruby (Alex Fenton)
...t;span class="cx"> %extend wxWindow {
</span><del>-
-        // TODO: Find a way to eliminate this weird hack
-        // It causes swig to define SWIGTYPE_p_wxPaintDC
-        // which is needed by our paint() method
- VALUE this_should_never_be_called(wxPaintDC *tmp) {
-         return Qnil;
- }
-
- VALUE paint()
- {...
2007 Mar 22
0
[910] branches/wxruby2/wxwidgets_282: Moved paint() method back into C++, so DC object is destroyed in timely
...;nbsp         wxPaintDC dc(ptr);
+                VALUE dcVal = SWIG_NewPointerObj((void *) &dc,SWIGTYPE_p_wxPaintDC, 0);
+                rb_yield(dcVal);
+              &...
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
...nbsp    wxPaintDC dc(ptr);
</span><span class="cx">                 VALUE dcVal = SWIG_NewPointerObj((void *) &dc,SWIGTYPE_p_wxPaintDC, 0);
</span><span class="lines">@@ -161,6 +170,15 @@
</span><span class="cx">                 SWIG_RubyRemoveTracking((void *)...