Mark Dootson wrote:
Hi,
Attached patch wraps classes wxOverlay and Wx::DCOverlay (from overlay.h).
I was hunting around for a way to have temporary lines drawn on wxMAC -
e.g. drag the mouse and have a bounding rectangle drawn. ( you don't get
the logical functions to redraw back to the original on wxMAC).
I found that wxPython wraps these classes and they are just what you
need (on all platforms) if you are interested in drawing apps.
I think I'm doing the right thing with CLONE and DESTROY - but I'm not
so sure to commit directly.
The CLONE/DESTROY code looks ok to me, but please add a test to
t/15_threads.t before committing. It just needs to create 2 instances
of each class, undef the first instance before the thread is spawned and
let the second be cloned by thread creation.
Thanks!
Mattia