KHTML
SVGZoomEvent.cpp
Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2004, 2005 Nikolas Zimmermann <wildfox@kde.org> 00003 Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 00004 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 00005 00006 This file is part of the KDE project 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Library General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Library General Public License for more details. 00017 00018 You should have received a copy of the GNU Library General Public License 00019 along with this library; see the file COPYING.LIB. If not, write to 00020 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00021 Boston, MA 02110-1301, USA. 00022 */ 00023 00024 #include "config.h" 00025 #if ENABLE(SVG) 00026 #include "SVGZoomEvent.h" 00027 00028 namespace WebCore { 00029 00030 SVGZoomEvent::SVGZoomEvent() 00031 : m_newScale(0.0f) 00032 , m_previousScale(0.0f) 00033 { 00034 } 00035 00036 SVGZoomEvent::~SVGZoomEvent() 00037 { 00038 } 00039 00040 FloatRect SVGZoomEvent::zoomRectScreen() const 00041 { 00042 return m_zoomRectScreen; 00043 } 00044 00045 float SVGZoomEvent::previousScale() const 00046 { 00047 return m_previousScale; 00048 } 00049 00050 void SVGZoomEvent::setPreviousScale(float scale) 00051 { 00052 m_previousScale = scale; 00053 } 00054 00055 FloatPoint SVGZoomEvent::previousTranslate() const 00056 { 00057 return m_previousTranslate; 00058 } 00059 00060 float SVGZoomEvent::newScale() const 00061 { 00062 return m_newScale; 00063 } 00064 00065 void SVGZoomEvent::setNewScale(float scale) 00066 { 00067 m_newScale = scale; 00068 } 00069 00070 FloatPoint SVGZoomEvent::newTranslate() const 00071 { 00072 return m_newTranslate; 00073 } 00074 00075 bool SVGZoomEvent::isSVGZoomEvent() const 00076 { 00077 return true; 00078 } 00079 00080 } // namespace WebCore 00081 00082 #endif // ENABLE(SVG) 00083 00084 // vim:ts=4:noet
KDE 4.6 API Reference