• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

SVGPathSegArc.cpp

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
00003                   2004, 2005, 2006 Rob Buis <buis@kde.org>
00004 
00005     This file is part of the KDE project
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to
00019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020     Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #include "config.h"
00024 #include "wtf/Platform.h"
00025 
00026 #if ENABLE(SVG)
00027 #include "SVGPathSegArc.h"
00028 
00029 #include "SVGStyledElement.h"
00030 
00031 namespace WebCore {
00032 
00033 SVGPathSegArcAbs::SVGPathSegArcAbs(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag)
00034     : SVGPathSeg()
00035     , m_x(x)
00036     , m_y(y)
00037     , m_r1(r1)
00038     , m_r2(r2)
00039     , m_angle(angle)
00040     , m_largeArcFlag(largeArcFlag)
00041     , m_sweepFlag(sweepFlag)
00042 {
00043 }
00044 
00045 SVGPathSegArcAbs::~SVGPathSegArcAbs()
00046 {
00047 }
00048 
00049 void SVGPathSegArcAbs::setX(float x)
00050 {
00051     m_x = x;
00052 }
00053 
00054 float SVGPathSegArcAbs::x() const
00055 {
00056     return m_x;
00057 }
00058 
00059 void SVGPathSegArcAbs::setY(float y)
00060 {
00061     m_y = y;
00062 }
00063 
00064 float SVGPathSegArcAbs::y() const
00065 {
00066     return m_y;
00067 }
00068 
00069 void SVGPathSegArcAbs::setR1(float r1)
00070 {
00071     m_r1 = r1;
00072 }
00073 
00074 float SVGPathSegArcAbs::r1() const
00075 {
00076     return m_r1;
00077 }
00078 
00079 void SVGPathSegArcAbs::setR2(float r2)
00080 {
00081     m_r2 = r2;
00082 }
00083 
00084 float SVGPathSegArcAbs::r2() const
00085 {
00086     return m_r2;
00087 }
00088 
00089 void SVGPathSegArcAbs::setAngle(float angle)
00090 {
00091     m_angle = angle;
00092 }
00093 
00094 float SVGPathSegArcAbs::angle() const
00095 {
00096     return m_angle;
00097 }
00098 
00099 void SVGPathSegArcAbs::setLargeArcFlag(bool largeArcFlag)
00100 {
00101     m_largeArcFlag = largeArcFlag;
00102 }
00103 
00104 bool SVGPathSegArcAbs::largeArcFlag() const
00105 {
00106     return m_largeArcFlag;
00107 }
00108 
00109 void SVGPathSegArcAbs::setSweepFlag(bool sweepFlag)
00110 {
00111     m_sweepFlag = sweepFlag;
00112 }
00113 
00114 bool SVGPathSegArcAbs::sweepFlag() const
00115 {
00116     return m_sweepFlag;
00117 }
00118 
00119 
00120 
00121 SVGPathSegArcRel::SVGPathSegArcRel(float x, float y, float r1, float r2, float angle, bool largeArcFlag, bool sweepFlag)
00122     : SVGPathSeg()
00123     , m_x(x)
00124     , m_y(y)
00125     , m_r1(r1)
00126     , m_r2(r2)
00127     , m_angle(angle)
00128     , m_largeArcFlag(largeArcFlag)
00129     , m_sweepFlag(sweepFlag)
00130 {
00131 }
00132 
00133 SVGPathSegArcRel::~SVGPathSegArcRel()
00134 {
00135 }
00136 
00137 void SVGPathSegArcRel::setX(float x)
00138 {
00139     m_x = x;
00140 }
00141 
00142 float SVGPathSegArcRel::x() const
00143 {
00144     return m_x;
00145 }
00146 
00147 void SVGPathSegArcRel::setY(float y)
00148 {
00149     m_y = y;
00150 }
00151 
00152 float SVGPathSegArcRel::y() const
00153 {
00154     return m_y;
00155 }
00156 
00157 void SVGPathSegArcRel::setR1(float r1)
00158 {
00159     m_r1 = r1;
00160 }
00161 
00162 float SVGPathSegArcRel::r1() const
00163 {
00164     return m_r1;
00165 }
00166 
00167 void SVGPathSegArcRel::setR2(float r2)
00168 {
00169     m_r2 = r2;
00170 }
00171 
00172 float SVGPathSegArcRel::r2() const
00173 {
00174     return m_r2;
00175 }
00176 
00177 void SVGPathSegArcRel::setAngle(float angle)
00178 {
00179     m_angle = angle;
00180 }
00181 
00182 float SVGPathSegArcRel::angle() const
00183 {
00184     return m_angle;
00185 }
00186 
00187 void SVGPathSegArcRel::setLargeArcFlag(bool largeArcFlag)
00188 {
00189     m_largeArcFlag = largeArcFlag;
00190 }
00191 
00192 bool SVGPathSegArcRel::largeArcFlag() const
00193 {
00194     return m_largeArcFlag;
00195 }
00196 
00197 void SVGPathSegArcRel::setSweepFlag(bool sweepFlag)
00198 {
00199     m_sweepFlag = sweepFlag;
00200 }
00201 
00202 bool SVGPathSegArcRel::sweepFlag() const
00203 {
00204     return m_sweepFlag;
00205 }
00206 
00207 }
00208 
00209 #endif // ENABLE(SVG)
00210 
00211 // vim:ts=4:noet

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal