KHTML
Go to the documentation of this file.
22 #ifndef GradientAttributes_h
23 #define GradientAttributes_h
29 struct GradientAttributes {
31 : m_spreadMethod(SPREADMETHOD_PAD)
32 , m_boundingBoxMode(true)
33 , m_spreadMethodSet(false)
34 , m_boundingBoxModeSet(false)
35 , m_gradientTransformSet(false)
40 SVGGradientSpreadMethod spreadMethod()
const {
return m_spreadMethod; }
41 bool boundingBoxMode()
const {
return m_boundingBoxMode; }
42 AffineTransform gradientTransform()
const {
return m_gradientTransform; }
43 const Vector<SVGGradientStop>& stops()
const {
return m_stops; }
45 void setSpreadMethod(SVGGradientSpreadMethod value) { m_spreadMethod = value; m_spreadMethodSet =
true; }
46 void setBoundingBoxMode(
bool value) { m_boundingBoxMode = value; m_boundingBoxModeSet =
true; }
47 void setGradientTransform(
const AffineTransform& value) { m_gradientTransform = value; m_gradientTransformSet =
true; }
48 void setStops(
const Vector<SVGGradientStop>& value) { m_stops = value; m_stopsSet =
true; }
50 bool hasSpreadMethod()
const {
return m_spreadMethodSet; }
51 bool hasBoundingBoxMode()
const {
return m_boundingBoxModeSet; }
52 bool hasGradientTransform()
const {
return m_gradientTransformSet; }
53 bool hasStops()
const {
return m_stopsSet; }
57 SVGGradientSpreadMethod m_spreadMethod;
58 bool m_boundingBoxMode;
59 AffineTransform m_gradientTransform;
60 Vector<SVGGradientStop> m_stops;
63 bool m_spreadMethodSet : 1;
64 bool m_boundingBoxModeSet : 1;
65 bool m_gradientTransformSet : 1;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:20 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.