• ↖ 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
addStyle
← Chapter 8. SVG DOM-Tree Access →

Name

svgdom::addStyle

Synopsis

          addStyle style \
             properties pnode doc
        

Description

Styles are defined inside a <defs> </defs> section, either local to a <group/> or the document itself.

The styles representing window classes are added to the svg document style section.

The style is added to the <defs/> section of the given group »pnode«.

Clients

addStyle is being used by ::dumper::tagconfigure, ::dumper::classStyle, ::dumper::styleTkPathNew clients.

Example 8.5. ::dumper::tagconfigure using addStyle

...
# is a text/css and CDATA object and has to be added as
# such!  The style is named after the tag.
# fixme (Roger) 10/23/2008 : Doesn't work!
svgdom::addStyle  $tag \
    [resolve::property $pairs font ]
   



← ↖ →
getNodeByID ↑ addToDefs
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider