KHTML
SVGZoomEvent.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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
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 }
00064
00065 #endif // ENABLE(SVG)
00066 #endif // SVGZoomEvent_h
00067
00068