File indexing completed on 2024-04-28 15:24:43

0001 /*
0002     Copyright (C) 2004, 2005 Nikolas Zimmermann <wildfox@kde.org>
0003     Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
0004     Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
0005 
0006     This file is part of the KDE project
0007 
0008     This library is free software; you can redistribute it and/or
0009     modify it under the terms of the GNU Library General Public
0010     License as published by the Free Software Foundation; either
0011     version 2 of the License, or (at your option) any later version.
0012 
0013     This library is distributed in the hope that it will be useful,
0014     but WITHOUT ANY WARRANTY; without even the implied warranty of
0015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0016     Library General Public License for more details.
0017 
0018     You should have received a copy of the GNU Library General Public License
0019     along with this library; see the file COPYING.LIB.  If not, write to
0020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0021     Boston, MA 02110-1301, USA.
0022 */
0023 
0024 #if ENABLE(SVG)
0025 #include "SVGZoomEvent.h"
0026 
0027 namespace WebCore
0028 {
0029 
0030 SVGZoomEvent::SVGZoomEvent()
0031     : m_newScale(0.0f)
0032     , m_previousScale(0.0f)
0033 {
0034 }
0035 
0036 SVGZoomEvent::~SVGZoomEvent()
0037 {
0038 }
0039 
0040 FloatRect SVGZoomEvent::zoomRectScreen() const
0041 {
0042     return m_zoomRectScreen;
0043 }
0044 
0045 float SVGZoomEvent::previousScale() const
0046 {
0047     return m_previousScale;
0048 }
0049 
0050 void SVGZoomEvent::setPreviousScale(float scale)
0051 {
0052     m_previousScale = scale;
0053 }
0054 
0055 FloatPoint SVGZoomEvent::previousTranslate() const
0056 {
0057     return m_previousTranslate;
0058 }
0059 
0060 float SVGZoomEvent::newScale() const
0061 {
0062     return m_newScale;
0063 }
0064 
0065 void SVGZoomEvent::setNewScale(float scale)
0066 {
0067     m_newScale = scale;
0068 }
0069 
0070 FloatPoint SVGZoomEvent::newTranslate() const
0071 {
0072     return m_newTranslate;
0073 }
0074 
0075 bool SVGZoomEvent::isSVGZoomEvent() const
0076 {
0077     return true;
0078 }
0079 
0080 } // namespace WebCore
0081 
0082 #endif // ENABLE(SVG)
0083