Re: [TCLCORE] Last Call - TIP#236
by Mo DeJong other posts by this author
Oct 18 2005 1:29PM messages near this date
Re: [TCLCORE] Last Call - TIP#236
|
Re: [TCLCORE] Last Call - TIP#236
On Fri, 14 Oct 2005 13:29:26 -0700
Mo DeJong <mdejong@[...].org> wrote:
> > Perhaps it is better to *not* change anything? :-) It is far too easy to
> > keep on adding extra bells and whistles to an API and turn it from a
..
> Along this line of thought, why not just leave out the bounding box calculation
> and this new kind of -anchor property?
Looking at this again, I think the right thing to do would be to name the option
-bboxanchor and have it default to nothing. That way one could write:
$can moveto $item $X $Y -bboxanchor ne
...
$can moveto $item $X $Y
When no -bboxanchor is given, the coords of the first item are used for the
offset calc and the bbox calculation is skipped. The option name avoids the
possibility of confusion with the -anchor property of items in the group.
The implementation will be faster in the default case since no bbox query
or calculation is done. In addition, it will work the same way for objects
that use an item as the anchor point for an item group.
Mo DeJong
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Donal K. Fellows
Mo DeJong
Neil McKay
Donal K. Fellows
Mo DeJong
Mo DeJong
Neil McKay
Mo DeJong
Donal K. Fellows
|