• ↖ Home
  • Developer´s Guide
    • ↑ Contents
    • Code
    • Embedding
    • Tcl
    • SVG
    • SVG-Import
    • Projects
    • License
    • Index
  • Download
    • Jeszra: Source Code

    • Ruby Wrapper Classes
    • Python Wrapper Classes
    • Lisp Wrapper Classes
  • Books@Lulu.com...
    • Jeszra: Design by Gestalt
    • Jeszra Library: Design by Gestalt

    • Gestalt Items
    • Runtime Library
  • Manual
    • Jeszra Book

    • Tcl Manual
    • Ruby Manual
    • Python Manual
    • Lisp Manual

    • API
  • About
canvasNew
← Chapter 4. SVG- Code Generation →

Name

dumper::canvasNew

Synopsis

          canvasNew window \
             type coords properties \
             ?name?
        

Description

Generate a graphical object for a certain canvas type ... will be broken into type related elements.

Breaking it into certain types is needed for dealing with canvas and TkPath items in their own fashion.

Note 10/20/2008 - 23:43 : Coordinates are not processed for type »windowrectangle«.

TkPath »group«s are extracted from the »properties«.

Clients

Total internal canvasNew usage is: 8.

canvasNew is being used by ::vgcode::dump-geometry-canvas, ::vgcode::dump-configure-PathCanvas, ::vgcode::dump-configure-Canvas clients.

Example 4.32. ::vgcode::dump-geometry-canvas using canvasNew

...
set id \
    [$canvas find withtag $target];
set c_name \
    [vgcode::baseName $canvas $basename $id_base];

return \
    [dumper::canvasNew $c_name window  \
    [$canvas coords $id]  \
    [dumper::properties \
    [vgcode::clearOptions  \
    [$canvas itemconfigure $id]  $basename]]  $target]
   



← ↖ →
imageNew ↑ clear
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider