Christopher Barker wrote: > Robin Dunn wrote: >> You can do hit testing using wx.GrpahicsPath's Contains method. > > Good point -- another reason to commit to GCs. > > Do you have any idea what the performance of Contains() is? There > probably isn't any way to know without testing.
No idea. I think it maps directly to a platform API on all the platforms so there is minimal wx overhead for it. > > One note, though -- using the offscreen bitmap method made for O(1) hit > testing -- which was pretty nice! Yeah I remembered that shortly after sending the message. Using path.Contains would be O(N) worst case, since you just traverse the reverse Z-order until you find one that returns True. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
