Re: [Foil-users] optimization of hit testing
Status: Beta
Brought to you by:
rhickey
From: Rich H. <ri...@ri...> - 2006-06-02 18:46:41
|
Did you try with-marshalling? There is an example here: http://foil.sourceforge.net/#marshalling It should pull anything property-like out with Java Bean introspection. If the 'rect' type has no field getters, then you might have to make your own marshaller. This involves deriving a class from IMarshaller and registering it with the base marshaller with registerMarshaller (). (i.e. tweaking the Java runtime server). It was designed to be extended like this, but there are no examples. On Jun 2, 2006, at 12:07 PM, Francis Leboutte wrote: > Hello, > > Implementing a simple cells-editor with table controls (SWT), I'm > optimizing the code that performs hit testing. Here is a piece of > code I still want to improve regarding speed: > > (let* ((rect (tableitem.getbounds tableitem ci)) > (rx (rectangle.x rect)) > (ry (rectangle.y rect)) > (rw (rectangle.width rect)) > (rh (rectangle.height rect))) > ...) > > Is it possible to get the location and size of the rectangle (rx ry > rw rh) in one call? > I have been looking at the Foil marshalling system but I not sure > if it applies to this example (and don't know how). > > Thank you, > > Francis > > > > _______________________________________________ > Foil-users mailing list > Foi...@li... > https://lists.sourceforge.net/lists/listinfo/foil-users http://foil.sourceforge.net/#marshalling |