~ubuntu-branches/ubuntu/maverick/webkit/maverick

« back to all changes in this revision

Viewing changes to WebCore/ksvg2/svg/SVGPathSegCurvetoCubic.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey
  • Date: 2007-08-19 15:54:12 UTC
  • Revision ID: james.westby@ubuntu.com-20070819155412-uxxg1h9plpghmtbi
Tags: upstream-0~svn25144
ImportĀ upstreamĀ versionĀ 0~svn25144

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
 
3
                  2004, 2005, 2006 Rob Buis <buis@kde.org>
 
4
 
 
5
    This file is part of the KDE project
 
6
 
 
7
    This library is free software; you can redistribute it and/or
 
8
    modify it under the terms of the GNU Library General Public
 
9
    License as published by the Free Software Foundation; either
 
10
    version 2 of the License, or (at your option) any later version.
 
11
 
 
12
    This library is distributed in the hope that it will be useful,
 
13
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
    Library General Public License for more details.
 
16
 
 
17
    You should have received a copy of the GNU Library General Public License
 
18
    along with this library; see the file COPYING.LIB.  If not, write to
 
19
    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
20
    Boston, MA 02111-1307, USA.
 
21
*/
 
22
 
 
23
#include "config.h"
 
24
 
 
25
#if ENABLE(SVG)
 
26
#include "SVGPathSegCurvetoCubic.h"
 
27
 
 
28
#include "SVGStyledElement.h"
 
29
 
 
30
namespace WebCore {
 
31
 
 
32
SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs(float x, float y, float x1, float y1, float x2, float y2)
 
33
    : SVGPathSeg()
 
34
    , m_x(x)
 
35
    , m_y(y)
 
36
    , m_x1(x1)
 
37
    , m_y1(y1)
 
38
    , m_x2(x2)
 
39
    , m_y2(y2)
 
40
{
 
41
}
 
42
 
 
43
SVGPathSegCurvetoCubicAbs::~SVGPathSegCurvetoCubicAbs()
 
44
{
 
45
}
 
46
 
 
47
void SVGPathSegCurvetoCubicAbs::setX(float x)
 
48
{
 
49
    m_x = x;
 
50
}
 
51
 
 
52
float SVGPathSegCurvetoCubicAbs::x() const
 
53
{
 
54
    return m_x;
 
55
}
 
56
 
 
57
void SVGPathSegCurvetoCubicAbs::setY(float y)
 
58
{
 
59
    m_y = y;
 
60
}
 
61
 
 
62
float SVGPathSegCurvetoCubicAbs::y() const
 
63
{
 
64
    return m_y;
 
65
}
 
66
 
 
67
void SVGPathSegCurvetoCubicAbs::setX1(float x1)
 
68
{
 
69
    m_x1 = x1;
 
70
}
 
71
 
 
72
float SVGPathSegCurvetoCubicAbs::x1() const
 
73
{
 
74
    return m_x1;
 
75
}
 
76
 
 
77
void SVGPathSegCurvetoCubicAbs::setY1(float y1)
 
78
{
 
79
    m_y1 = y1;
 
80
}
 
81
 
 
82
float SVGPathSegCurvetoCubicAbs::y1() const
 
83
{
 
84
    return m_y1;
 
85
}
 
86
 
 
87
void SVGPathSegCurvetoCubicAbs::setX2(float x2)
 
88
{
 
89
    m_x2 = x2;
 
90
}
 
91
 
 
92
float SVGPathSegCurvetoCubicAbs::x2() const
 
93
{
 
94
    return m_x2;
 
95
}
 
96
 
 
97
void SVGPathSegCurvetoCubicAbs::setY2(float y2)
 
98
{
 
99
    m_y2 = y2;
 
100
}
 
101
 
 
102
float SVGPathSegCurvetoCubicAbs::y2() const
 
103
{
 
104
    return m_y2;
 
105
}
 
106
 
 
107
 
 
108
 
 
109
 
 
110
SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel(float x, float y, float x1, float y1, float x2, float y2)
 
111
    : SVGPathSeg()
 
112
    , m_x(x)
 
113
    , m_y(y)
 
114
    , m_x1(x1)
 
115
    , m_y1(y1)
 
116
    , m_x2(x2)
 
117
    , m_y2(y2)
 
118
{
 
119
}
 
120
 
 
121
SVGPathSegCurvetoCubicRel::~SVGPathSegCurvetoCubicRel()
 
122
{
 
123
}
 
124
 
 
125
void SVGPathSegCurvetoCubicRel::setX(float x)
 
126
{
 
127
    m_x = x;
 
128
}
 
129
 
 
130
float SVGPathSegCurvetoCubicRel::x() const
 
131
{
 
132
    return m_x;
 
133
}
 
134
 
 
135
void SVGPathSegCurvetoCubicRel::setY(float y)
 
136
{
 
137
    m_y = y;
 
138
}
 
139
 
 
140
float SVGPathSegCurvetoCubicRel::y() const
 
141
{
 
142
    return m_y;
 
143
}
 
144
 
 
145
void SVGPathSegCurvetoCubicRel::setX1(float x1)
 
146
{
 
147
    m_x1 = x1;
 
148
}
 
149
 
 
150
float SVGPathSegCurvetoCubicRel::x1() const
 
151
{
 
152
    return m_x1;
 
153
}
 
154
 
 
155
void SVGPathSegCurvetoCubicRel::setY1(float y1)
 
156
{
 
157
    m_y1 = y1;
 
158
}
 
159
 
 
160
float SVGPathSegCurvetoCubicRel::y1() const
 
161
{
 
162
    return m_y1;
 
163
}
 
164
 
 
165
void SVGPathSegCurvetoCubicRel::setX2(float x2)
 
166
{
 
167
    m_x2 = x2;
 
168
}
 
169
 
 
170
float SVGPathSegCurvetoCubicRel::x2() const
 
171
{
 
172
    return m_x2;
 
173
}
 
174
 
 
175
void SVGPathSegCurvetoCubicRel::setY2(float y2)
 
176
{
 
177
    m_y2 = y2;
 
178
}
 
179
 
 
180
float SVGPathSegCurvetoCubicRel::y2() const
 
181
{
 
182
    return m_y2;
 
183
}
 
184
 
 
185
}
 
186
 
 
187
#endif // ENABLE(SVG)
 
188
 
 
189
// vim:ts=4:noet