« Return to Thread: New Canvas

New Canvas

by Mats Bengtsson-5 :: Rate this Message:

Reply to Author | View in Thread

ANNOUNCE: tkpath 0.3.0

Tkpath 0.3.0 provides a new canvas widget that is supposed to be 100%
compatible with tk::canvas. My major motivation for creating
this package was to make something that maps well with SVG graphics
(http://www.w3.org/TR/SVG11/).

Tkpath adds mainly two things:

  1) A number of new item types with options that map easily to SVG objects.
  2) A display tree hierarchy with some fancy option inheritance.

The new items are:
    circle
    ellipse
    group
    path
    pimage
    pline
    polyline
    ppolygon
    prect
    ptext

Most of them can be configured using styles. Instead of setting similar
options for each of them, it is possible to create a style, and then
use this style for each similar item. When a style is configured, each
item using it will be redisplayed.

Using the group item you create a "directory" in the item hierarchy
which acts similar to a frame in the widget hierarchy except that
options set to the group may be inherited by child items.

The only documentation currently is
http://tclbitprint.sourceforge.net/tkpath/README.txt which is very sparse.

Perhaps the easists way to describe it is to look at the screen shots
at http://tclbitprint.sourceforge.net/, look at the tkpath links.

Note that previous tkpath releases used the tk::canvas item type
plugin model for the new item types. This is no longer possible.

Download: just do a cvs checkout (http://sourceforge.net/cvs/?group_id=84344)
and build yourself, or just use the pre-built binaries found in the
cvs tree. The only non-standard dependency is on cairo-graphics which
is getting common in later linux distros.

If anyone want to help then focus on documentations, test code, and
bug patches.

Enjoy,    Mats  (matsben@...)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

 « Return to Thread: New Canvas

LightInTheBox - Buy quality products at wholesale price!