Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ANNOUNCE: canvas rotate module

7 views
Skip to first unread message

Matthew Rice

unread,
Aug 9, 1996, 3:00:00 AM8/9/96
to

The canvas rotate module for Tk4.1p1 is ready. This is the first
release to support it as a loadable module (with Jan's dash patch)
The appropriate files are visrotate.README and visrotate.tar.gz


What is the Visitor module (nee extension):
The visitors extension was made to enable users to add "C" operations on
canvas graphics items without having to constantly be changing the
Tk core to do so (yes it required a core change :-). There is a sample
visitor included in the release which performs coord rotation on each
specified canvas item. This may be used as an example for further visitors.

BIG NOTE:
Jan Nijtmans is maintaining the code that required a core patch.
Get his dash patch at:
http://www.nici.kun.nl/~nijtmans/tcl/patch.html

Read the top of Jan's patch for instructions on applying the patch.
Once you have this then you can use the rotate visitor and build your
own visitors. A Makefile based on Sun's example is included.

Getting the rotate module:
Presently, the module is available from:
ftp://pgw.on.ca/pub/tcl

I've also uploaded it to:
ftp://ftp.neosoft.com/pub/tcl/incoming

More information:
There is a mailing list for sharing information/problems with
the visitors extension as well as any other extensions (preferably)
related to the tk canvas widget.

You can subscribe to the list by sending e-mail to:
Majo...@pgw.on.ca

with the mail body:
subscribe canvas-visitors

You can also send mail directly to Matthew Rice at:
Matthe...@ftlsol.com


What visitor specific changes were required:
For interest's sake (and because there is no supporting documentation
other than the code) here are the major file changes:

tkCanvas.c - Added the canvas visit operation in the command list. There
is also a Tk_CreateVisitorType function so that you
may add your own without needing core changes.
tkVisRotate.c - (new file) This is the module that implements the rotation
tkVisitor.h - (new file) This is the export canvas item structures.
tk.h - Added Tk_Visitor and Tk_VisitorType structures.
Added a VisitorProc & BboxProc to the Tk_Item structure.

These patched files are now in Jan's dash patch.


TTFN,
--
Matthew Rice e-mail: matthe...@ftlsol.com

--
[[Send Tcl/Tk announcements to tcl-an...@mitchell.org
Send administrivia to tcl-announ...@mitchell.org
Announcements archived at http:/www.xpi.com/tcl/comp.lang.tcl.announce/
The primary Tcl/Tk archive is ftp://ftp.neosoft.com/pub/tcl/]]

0 new messages