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

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

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
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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