KHTML
Go to the documentation of this file.
31 #include "ImageBuffer.h"
33 #include "SVGRenderTreeAsText.h"
39 SVGPaintServerPattern::SVGPaintServerPattern(
const SVGPatternElement* owner)
40 : m_ownerElement(owner)
49 SVGPaintServerPattern::~SVGPaintServerPattern()
52 CGPatternRelease(m_pattern);
53 CGColorSpaceRelease(m_patternSpace);
57 FloatRect SVGPaintServerPattern::patternBoundaries()
const
59 return m_patternBoundaries;
62 void SVGPaintServerPattern::setPatternBoundaries(
const FloatRect& rect)
64 m_patternBoundaries = rect;
67 ImageBuffer* SVGPaintServerPattern::tile()
const
72 void SVGPaintServerPattern::setTile(auto_ptr<ImageBuffer> tile)
74 m_tile.set(tile.release());
77 AffineTransform SVGPaintServerPattern::patternTransform()
const
79 return m_patternTransform;
82 void SVGPaintServerPattern::setPatternTransform(
const AffineTransform& transform)
84 m_patternTransform = transform;
87 TextStream& SVGPaintServerPattern::externalRepresentation(TextStream& ts)
const
90 m_ownerElement->buildPattern(FloatRect(0.0f, 0.0f, 1.0f, 1.0f));
92 ts <<
"[type=PATTERN]"
93 <<
" [bbox=" << patternBoundaries() <<
"]";
94 if (!patternTransform().isIdentity())
95 ts <<
" [pattern transform=" << patternTransform() <<
"]";
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:22 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.