SVG Tiny 1.2 - 20071117

Q Perl Language Binding for SVG

Contents

This appendix is normative.

Fields in this binding are implemented as methods which get the value when not parameter is passed, and set it when it is given. Upon setting the return value is that of the field after it has been set. Note that it may differ from the value that was passed to the setter as normalization may have taken place.

Q.1 Module dom

Package W3C::DOM::DOMException
The W3C::DOM::DOMException package holds the following constants:
INDEX_SIZE_ERR
This constant is a number and its value is 1.
DOMSTRING_SIZE_ERR
This constant is a number and its value is 2.
HIERARCHY_REQUEST_ERR
This constant is a number and its value is 3.
WRONG_DOCUMENT_ERR
This constant is a number and its value is 4.
INVALID_CHARACTER_ERR
This constant is a number and its value is 5.
NO_DATA_ALLOWED_ERR
This constant is a number and its value is 6.
NO_MODIFICATION_ALLOWED_ERR
This constant is a number and its value is 7.
NOT_FOUND_ERR
This constant is a number and its value is 8.
NOT_SUPPORTED_ERR
This constant is a number and its value is 9.
INUSE_ATTRIBUTE_ERR
This constant is a number and its value is 10.
INVALID_STATE_ERR
This constant is a number and its value is 11.
SYNTAX_ERR
This constant is a number and its value is 12.
INVALID_MODIFICATION_ERR
This constant is a number and its value is 13.
NAMESPACE_ERR
This constant is a number and its value is 14.
INVALID_ACCESS_ERR
This constant is a number and its value is 15.
VALIDATION_ERR
This constant is a number and its value is 16.
TYPE_MISMATCH_ERR
This constant is a number and its value is 17.
Class W3C::DOM::DOMException
The W3C::DOM::DOMException class has the following fields:
code
This field holds a number.
Class W3C::DOM::Node
The W3C::DOM::Node class has the following fields:
namespaceURI
This field holds a string.
localName
This field holds a string.
parentNode
This field holds a W3C::DOM::Node.
ownerDocument
This field holds a W3C::DOM::Document.
textContent
This field holds a string.
The W3C::DOM::Node class has the following methods:
appendChild($newChild)
This method returns a W3C::DOM::Node. The $newChild parameter is a W3C::DOM::Node.
insertBefore($newChild, $refChild)
This method returns a W3C::DOM::Node. The $newChild parameter is a W3C::DOM::Node. The $refChild parameter is a W3C::DOM::Node.
removeChild($oldChild)
This method returns a W3C::DOM::Node. The $oldChild parameter is a W3C::DOM::Node.
cloneNode($deep)
This method returns a W3C::DOM::Node. The $deep parameter is a boolean.
Class W3C::DOM::Element

W3C::DOM::Element inherits from W3C::DOM::Node, W3C::DOM::ElementTraversal.

The W3C::DOM::Element class has the following methods:
getAttributeNS($namespaceURI, $localName)
This method returns a string. The $namespaceURI parameter is a string. The $localName parameter is a string.
setAttributeNS($namespaceURI, $qualifiedName, $value)
This method has no return value. The $namespaceURI parameter is a string. The $qualifiedName parameter is a string. The $value parameter is a string.
getAttribute($name)
This method returns a string. The $name parameter is a string.
setAttribute($name, $value)
This method has no return value. The $name parameter is a string. The $value parameter is a string.
Class W3C::DOM::Document

W3C::DOM::Document inherits from W3C::DOM::Node.

The W3C::DOM::Document class has the following fields:
implementation
This field holds a W3C::DOM::DOMImplementation.
documentElement
This field holds a W3C::DOM::Element.
The W3C::DOM::Document class has the following methods:
createElementNS($namespaceURI, $qualifiedName)
This method returns a W3C::DOM::Element. The $namespaceURI parameter is a string. The $qualifiedName parameter is a string.
getElementById($elementId)
This method returns a W3C::DOM::Element. The $elementId parameter is a string.
Class W3C::DOM::ElementTraversal
The W3C::DOM::ElementTraversal class has the following fields:
firstElementChild
This field holds a W3C::DOM::Element.
lastElementChild
This field holds a W3C::DOM::Element.
nextElementSibling
This field holds a W3C::DOM::Element.
previousElementSibling
This field holds a W3C::DOM::Element.
Class W3C::DOM::DOMImplementation

Q.2 Module events

Class W3C::DOM::Events::EventTarget
The W3C::DOM::Events::EventTarget class has the following methods:
addEventListener($type, $listener, $useCapture)
This method has no return value. The $type parameter is a string. The $listener parameter is a W3C::DOM::Events::EventListener. The $useCapture parameter is a boolean.
removeEventListener($type, $listener, $useCapture)
This method has no return value. The $type parameter is a string. The $listener parameter is a W3C::DOM::Events::EventListener. The $useCapture parameter is a boolean.
addEventListenerNS($namespaceURI, $type, $listener, $useCapture, $evtGroup)
This method has no return value. The $namespaceURI parameter is a string. The $type parameter is a string. The $listener parameter is a W3C::DOM::Events::EventListener. The $useCapture parameter is a boolean. The $evtGroup parameter is a object.
removeEventListenerNS($namespaceURI, $type, $listener, $useCapture)
This method has no return value. The $namespaceURI parameter is a string. The $type parameter is a string. The $listener parameter is a W3C::DOM::Events::EventListener. The $useCapture parameter is a boolean.
Class W3C::DOM::Events::EventListener
The W3C::DOM::Events::EventListener class has the following methods:
handleEvent($evt)
This method has no return value. The $evt parameter is a W3C::DOM::Events::Event.
Class W3C::DOM::Events::Event
The W3C::DOM::Events::Event class has the following fields:
target
This field holds a W3C::DOM::Events::EventTarget.
currentTarget
This field holds a W3C::DOM::Events::EventTarget.
type
This field holds a string.
namespaceURI
This field holds a string.
cancelable
This field holds a boolean.
defaultPrevented
This field holds a boolean.
The W3C::DOM::Events::Event class has the following methods:
stopPropagation()
This method has no return value.
preventDefault()
This method has no return value.
Class W3C::DOM::Events::MouseEvent

W3C::DOM::Events::MouseEvent inherits from W3C::DOM::Events::UIEvent.

The W3C::DOM::Events::MouseEvent class has the following fields:
screenX
This field holds a number.
screenY
This field holds a number.
clientX
This field holds a number.
clientY
This field holds a number.
button
This field holds a number.
Class W3C::DOM::Events::MouseWheelEvent

W3C::DOM::Events::MouseWheelEvent inherits from W3C::DOM::Events::MouseEvent.

The W3C::DOM::Events::MouseWheelEvent class has the following fields:
wheelDelta
This field holds a number.
Class W3C::DOM::Events::TextEvent

W3C::DOM::Events::TextEvent inherits from W3C::DOM::Events::UIEvent.

The W3C::DOM::Events::TextEvent class has the following fields:
data
This field holds a string.
Class W3C::DOM::Events::KeyboardEvent

W3C::DOM::Events::KeyboardEvent inherits from W3C::DOM::Events::UIEvent.

The W3C::DOM::Events::KeyboardEvent class has the following fields:
keyIdentifier
This field holds a string.
Class W3C::DOM::Events::UIEvent

W3C::DOM::Events::UIEvent inherits from W3C::DOM::Events::Event.

The W3C::DOM::Events::UIEvent class has the following fields:
detail
This field holds a number.
Class W3C::DOM::Events::ProgressEvent

W3C::DOM::Events::ProgressEvent inherits from W3C::DOM::Events::Event.

The W3C::DOM::Events::ProgressEvent class has the following fields:
lengthComputable
This field holds a boolean.
loaded
This field holds a number.
total
This field holds a number.
Package W3C::DOM::Events::ConnectionEvent
The W3C::DOM::Events::ConnectionEvent package has the following constants:
NO_ERR
This constant is a number and its value is 0.
NETWORK_ERR
This constant is a number and its value is 1.
Class W3C::DOM::Events::ConnectionEvent

W3C::DOM::Events::ConnectionEvent inherits from W3C::DOM::Events::Event.

The W3C::DOM::Events::ConnectionEvent class has the following fields:
errorCode
This field holds a number.
receivedData
This field holds a Perl array.

Q.3 Module smil

Class W3C::DOM::SMIL::ElementTimeControl
The W3C::DOM::SMIL::ElementTimeControl class has the following methods:
beginElementAt($offset)
This method has no return value. The $offset parameter is a number.
beginElement()
This method has no return value.
endElementAt($offset)
This method has no return value. The $offset parameter is a number.
endElement()
This method has no return value.
Class W3C::DOM::SMIL::TimeEvent

W3C::DOM::SMIL::TimeEvent inherits from W3C::DOM::Events::Event.

The W3C::DOM::SMIL::TimeEvent class has the following fields:
detail
This field holds a number.

Q.4 Module global

Class W3C::DOM::Global::Global
Package W3C::DOM::Global::GlobalException
The W3C::DOM::Global::GlobalException package holds the following constants:
NOT_CONNECTED_ERR
This constant is a number and its value is 1.
ENCODING_ERR
This constant is a number and its value is 2.
DENIED_ERR
This constant is a number and its value is 3.
UNKNOWN_ERR
This constant is a number and its value is 4.
Class W3C::DOM::Global::GlobalException
The W3C::DOM::Global::GlobalException class has the following fields:
code
This field holds a number.
Class W3C::DOM::Global::Connection

W3C::DOM::Global::Connection inherits from W3C::DOM::Events::EventTarget.

The W3C::DOM::Global::Connection class has the following fields:
connected
This field holds a boolean.
The W3C::DOM::Global::Connection class has the following methods:
connect($host, $port)
This method has no return value. The $host parameter is a string. The $port parameter is a number.
send($data)
This method has no return value. The $data parameter is a Perl array.
close()
This method has no return value.
Class W3C::DOM::Global::Timer

W3C::DOM::Global::Timer inherits from ::events::EventTarget.

The W3C::DOM::Global::Timer class has the following fields:
delay
This field holds a number.
repeatInterval
This field holds a number.
running
This field holds a boolean.
The W3C::DOM::Global::Timer class has the following methods:
start()
This method has no return value.
stop()
This method has no return value.

Q.5 Module svg

Package W3C::DOM::SVG::SVGException
The W3C::DOM::SVG::SVGException package holds the following constants:
SVG_WRONG_TYPE_ERR
This constant is a number and its value is 0.
SVG_INVALID_VALUE_ERR
This constant is a number and its value is 1.
SVG_MATRIX_NOT_INVERTABLE
This constant is a number and its value is 2.
Class W3C::DOM::SVG::SVGException
The W3C::DOM::SVG::SVGException class has the following fields:
code
This field holds a number.
Class W3C::DOM::SVG::SVGDocument

W3C::DOM::SVG::SVGDocument inherits from W3C::DOM::Document, W3C::DOM::Events::EventTarget.

The W3C::DOM::SVG::SVGDocument class has the following fields:
global
This field holds a W3C::DOM::SVG::SVGGlobal.
Class W3C::DOM::SVG::SVGElementInstance

W3C::DOM::SVG::SVGElementInstance inherits from W3C::DOM::Events::EventTarget.

The W3C::DOM::SVG::SVGElementInstance class has the following fields:
correspondingElement
This field holds a W3C::DOM::SVG::SVGElement.
correspondingUseElement
This field holds a W3C::DOM::SVG::SVGElement.
Package W3C::DOM::SVG::SVGSVGElement
The W3C::DOM::SVG::SVGSVGElement package has the following constants:
NAV_AUTO
This constant is a number and its value is 1.
NAV_NEXT
This constant is a number and its value is 2.
NAV_PREV
This constant is a number and its value is 3.
NAV_UP
This constant is a number and its value is 4.
NAV_UP_RIGHT
This constant is a number and its value is 5.
NAV_RIGHT
This constant is a number and its value is 6.
NAV_DOWN_RIGHT
This constant is a number and its value is 7.
NAV_DOWN
This constant is a number and its value is 8.
NAV_DOWN_LEFT
This constant is a number and its value is 9.
NAV_LEFT
This constant is a number and its value is 10.
NAV_UP_LEFT
This constant is a number and its value is 11.
Class W3C::DOM::SVG::SVGSVGElement

W3C::DOM::SVG::SVGSVGElement inherits from W3C::DOM::SVG::SVGLocatableElement, W3C::DOM::SVG::SVGTimedElement.

The W3C::DOM::SVG::SVGSVGElement class has the following fields:
currentScale
This field holds a number.
currentRotate
This field holds a number.
currentTranslate
This field holds a W3C::DOM::SVG::SVGPoint.
viewport
This field holds a W3C::DOM::SVG::SVGRect.
The W3C::DOM::SVG::SVGSVGElement class has the following methods:
getCurrentTime()
This method returns a number.
setCurrentTime($seconds)
This method has no return value. The $seconds parameter is a number.
createSVGMatrixComponents($a, $b, $c, $d, $e, $f)
This method returns a W3C::DOM::SVG::SVGMatrix. The $a parameter is a number. The $b parameter is a number. The $c parameter is a number. The $d parameter is a number. The $e parameter is a number. The $f parameter is a number.
createSVGRect()
This method returns a W3C::DOM::SVG::SVGRect.
createSVGPoint()
This method returns a W3C::DOM::SVG::SVGPoint.
createSVGPath()
This method returns a W3C::DOM::SVG::SVGPath.
createSVGRGBColor($red, $green, $blue)
This method returns a W3C::DOM::SVG::SVGRGBColor. The $red parameter is a number. The $green parameter is a number. The $blue parameter is a number.
moveFocus($motionType)
This method has no return value. The $motionType parameter is a number.
setFocus($theObject)
This method has no return value. The $theObject parameter is a W3C::DOM::Events::EventTarget.
getCurrentFocusedObject()
This method returns a W3C::DOM::Events::EventTarget.
Class W3C::DOM::SVG::SVGRGBColor
The W3C::DOM::SVG::SVGRGBColor class has the following fields:
red
This field holds a number.
green
This field holds a number.
blue
This field holds a number.
Class W3C::DOM::SVG::SVGRect
The W3C::DOM::SVG::SVGRect class has the following fields:
x
This field holds a number.
y
This field holds a number.
width
This field holds a number.
height
This field holds a number.
Class W3C::DOM::SVG::SVGPoint
The W3C::DOM::SVG::SVGPoint class has the following fields:
x
This field holds a number.
y
This field holds a number.
The W3C::DOM::SVG::SVGPoint class has the following methods:
matrixTransform($matrix)
This method returns a W3C::DOM::SVG::SVGPoint. The $matrix parameter is a W3C::DOM::SVG::SVGMatrix.
Package W3C::DOM::SVG::SVGPath
The W3C::DOM::SVG::SVGPath package has the following constants:
MOVE_TO
This constant is a number and its value is 77.
LINE_TO
This constant is a number and its value is 76.
CURVE_TO
This constant is a number and its value is 67.
QUAD_TO
This constant is a number and its value is 81.
CLOSE
This constant is a number and its value is 90.
Class W3C::DOM::SVG::SVGPath
The W3C::DOM::SVG::SVGPath class has the following fields:
numberOfSegments
This field holds a number.
The W3C::DOM::SVG::SVGPath class has the following methods:
getSegment($cmdIndex)
This method returns a number. The $cmdIndex parameter is a number.
getSegmentParam($cmdIndex, $paramIndex)
This method returns a number. The $cmdIndex parameter is a number. The $paramIndex parameter is a number.
moveTo($x, $y)
This method has no return value. The $x parameter is a number. The $y parameter is a number.
lineTo($x, $y)
This method has no return value. The $x parameter is a number. The $y parameter is a number.
quadTo($x1, $y1, $x2, $y2)
This method has no return value. The $x1 parameter is a number. The $y1 parameter is a number. The $x2 parameter is a number. The $y2 parameter is a number.
curveTo($x1, $y1, $x2, $y2, $x3, $y3)
This method has no return value. The $x1 parameter is a number. The $y1 parameter is a number. The $x2 parameter is a number. The $y2 parameter is a number. The $x3 parameter is a number. The $y3 parameter is a number.
close()
This method has no return value.
Class W3C::DOM::SVG::SVGMatrix
The W3C::DOM::SVG::SVGMatrix class has the following methods:
getComponent($index)
This method returns a number. The $index parameter is a number.
mMultiply($secondMatrix)
This method returns a W3C::DOM::SVG::SVGMatrix. The $secondMatrix parameter is a W3C::DOM::SVG::SVGMatrix.
inverse()
This method returns a W3C::DOM::SVG::SVGMatrix.
mTranslate($x, $y)
This method returns a W3C::DOM::SVG::SVGMatrix. The $x parameter is a number. The $y parameter is a number.
mScale($scaleFactor)
This method returns a W3C::DOM::SVG::SVGMatrix. The $scaleFactor parameter is a number.
mRotate($angle)
This method returns a W3C::DOM::SVG::SVGMatrix. The $angle parameter is a number.
Class W3C::DOM::SVG::SVGLocatable
The W3C::DOM::SVG::SVGLocatable class has the following methods:
getBBox()
This method returns a W3C::DOM::SVG::SVGRect.
getScreenCTM()
This method returns a W3C::DOM::SVG::SVGMatrix.
getScreenBBox()
This method returns a W3C::DOM::SVG::SVGRect.
Class W3C::DOM::SVG::SVGLocatableElement

W3C::DOM::SVG::SVGLocatableElement inherits from W3C::DOM::SVG::SVGElement, W3C::DOM::SVG::SVGLocatable.

Class W3C::DOM::SVG::TraitAccess
The W3C::DOM::SVG::TraitAccess class has the following methods:
getTrait($name)
This method returns a string. The $name parameter is a string.
getTraitNS($namespaceURI, $name)
This method returns a string. The $namespaceURI parameter is a string. The $name parameter is a string.
getFloatTrait($name)
This method returns a number. The $name parameter is a string.
getFloatListTrait($name)
This method returns a Perl array. The $name parameter is a string.
getMatrixTrait($name)
This method returns a W3C::DOM::SVG::SVGMatrix. The $name parameter is a string.
getRectTrait($name)
This method returns a W3C::DOM::SVG::SVGRect. The $name parameter is a string.
getPathTrait($name)
This method returns a W3C::DOM::SVG::SVGPath. The $name parameter is a string.
getRGBColorTrait($name)
This method returns a W3C::DOM::SVG::SVGRGBColor. The $name parameter is a string.
getPresentationTrait($name)
This method returns a string. The $name parameter is a string.
getPresentationTraitNS($namespaceURI, $name)
This method returns a string. The $namespaceURI parameter is a string. The $name parameter is a string.
getFloatPresentationTrait($name)
This method returns a number. The $name parameter is a string.
getFloatListPresentationTrait($name)
This method returns a Perl array. The $name parameter is a string.
getMatrixPresentationTrait($name)
This method returns a W3C::DOM::SVG::SVGMatrix. The $name parameter is a string.
getRectPresentationTrait($name)
This method returns a W3C::DOM::SVG::SVGRect. The $name parameter is a string.
getPathPresentationTrait($name)
This method returns a W3C::DOM::SVG::SVGPath. The $name parameter is a string.
getRGBColorPresentationTrait($name)
This method returns a W3C::DOM::SVG::SVGRGBColor. The $name parameter is a string.
setTrait($name, $value)
This method has no return value. The $name parameter is a string. The $value parameter is a string.
setTraitNS($namespaceURI, $name, $value)
This method has no return value. The $namespaceURI parameter is a string. The $name parameter is a string. The $value parameter is a string.
setFloatTrait($name, $value)
This method has no return value. The $name parameter is a string. The $value parameter is a number.
setFloatListTrait($name, $value)
This method has no return value. The $name parameter is a string. The $value parameter is a Perl array.
setMatrixTrait($name, $matrix)
This method has no return value. The $name parameter is a string. The $matrix parameter is a W3C::DOM::SVG::SVGMatrix.
setRectTrait($name, $rect)
This method has no return value. The $name parameter is a string. The $rect parameter is a W3C::DOM::SVG::SVGRect.
setPathTrait($name, $path)
This method has no return value. The $name parameter is a string. The $path parameter is a W3C::DOM::SVG::SVGPath.
setRGBColorTrait($name, $color)
This method has no return value. The $name parameter is a string. The $color parameter is a W3C::DOM::SVG::SVGRGBColor.
Class W3C::DOM::SVG::SVGElement

W3C::DOM::SVG::SVGElement inherits from W3C::DOM::Element, W3C::DOM::Events::EventTarget, W3C::DOM::SVG::TraitAccess.

The W3C::DOM::SVG::SVGElement class has the following fields:
id
This field holds a string.
Class W3C::DOM::SVG::SVGTimedElement

W3C::DOM::SVG::SVGTimedElement inherits from W3C::DOM::SVG::SVGElement, ::smil::ElementTimeControl.

The W3C::DOM::SVG::SVGTimedElement class has the following fields:
isPaused
This field holds a boolean.
The W3C::DOM::SVG::SVGTimedElement class has the following methods:
pauseElement()
This method has no return value.
resumeElement()
This method has no return value.
Class W3C::DOM::SVG::SVGAnimationElement

W3C::DOM::SVG::SVGAnimationElement inherits from W3C::DOM::SVG::SVGTimedElement.

Class W3C::DOM::SVG::SVGVisualMediaElement

W3C::DOM::SVG::SVGVisualMediaElement inherits from W3C::DOM::SVG::SVGLocatableElement, W3C::DOM::SVG::SVGTimedElement.

Class W3C::DOM::SVG::SVGGlobal

W3C::DOM::SVG::SVGGlobal inherits from W3C::DOM::Global::Global.

The W3C::DOM::SVG::SVGGlobal class has the following fields:
document
This field holds a W3C::DOM::Document.
parent
This field holds a W3C::DOM::Global::Global.
The W3C::DOM::SVG::SVGGlobal class has the following methods:
createConnection()
This method returns a W3C::DOM::Global::Connection.
createTimer($initialInterval, $repeatInterval)
This method returns a W3C::DOM::Global::Timer. The $initialInterval parameter is a number. The $repeatInterval parameter is a number.
gotoLocation($newIRI)
This method has no return value. The $newIRI parameter is a string.
binaryToString($octets, $encoding)
This method returns a string. The $octets parameter is a Perl array. The $encoding parameter is a string.
stringToBinary($data, $encoding)
This method returns a Perl array. The $data parameter is a string. The $encoding parameter is a string.
getURL($iri, $callback)
This method has no return value. The $iri parameter is a string. The $callback parameter is a W3C::DOM::SVG::AsyncStatusCallback.
postURL($iri, $data, $callback, $type, $encoding)
This method has no return value. The $iri parameter is a string. The $data parameter is a string. The $callback parameter is a W3C::DOM::SVG::AsyncStatusCallback. The $type parameter is a string. The $encoding parameter is a string.
parseXML($data, $contextDoc)
This method returns a W3C::DOM::Node. The $data parameter is a string. The $contextDoc parameter is a W3C::DOM::Document.
Class W3C::DOM::SVG::AsyncStatusCallback
The W3C::DOM::SVG::AsyncStatusCallback class has the following methods:
operationComplete($status)
This method has no return value. The $status parameter is a W3C::DOM::SVG::AsyncURLStatus.
Class W3C::DOM::SVG::AsyncURLStatus
The W3C::DOM::SVG::AsyncURLStatus class has the following fields:
success
This field holds a boolean.
contentType
This field holds a string.
content
This field holds a string.
Class W3C::DOM::SVG::EventListenerInitializer2
The W3C::DOM::SVG::EventListenerInitializer2 class has the following methods:
initializeEventListeners($scriptElement)
This method has no return value. The $scriptElement parameter is a W3C::DOM::Element.
createEventListener($handlerElement)
This method returns a W3C::DOM::Events::EventListener. The $handlerElement parameter is a W3C::DOM::Element.