KHTML
SVGZoomEvent.h
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 #ifndef SVGZoomEvent_h 00025 #define SVGZoomEvent_h 00026 #if ENABLE(SVG) 00027 00028 #include "FloatRect.h" 00029 #include "UIEvent.h" 00030 00031 namespace WebCore { 00032 00033 class SVGZoomEvent : public UIEvent { 00034 public: 00035 SVGZoomEvent(); 00036 virtual ~SVGZoomEvent(); 00037 00038 // 'SVGZoomEvent' functions 00039 FloatRect zoomRectScreen() const; 00040 00041 float previousScale() const; 00042 void setPreviousScale(float); 00043 00044 FloatPoint previousTranslate() const; 00045 00046 float newScale() const; 00047 void setNewScale(float); 00048 00049 FloatPoint newTranslate() const; 00050 00051 virtual bool isSVGZoomEvent() const; 00052 00053 private: 00054 float m_newScale; 00055 float m_previousScale; 00056 00057 FloatRect m_zoomRectScreen; 00058 00059 FloatPoint m_newTranslate; 00060 FloatPoint m_previousTranslate; 00061 }; 00062 00063 } // namespace WebCore 00064 00065 #endif // ENABLE(SVG) 00066 #endif // SVGZoomEvent_h 00067 00068 // vim:ts=4:noet
KDE 4.6 API Reference