// SPDX-License-Identifier: GPL-2.0-or-later #ifndef __SP_ZOOM_CONTEXT_H__ #define __SP_ZOOM_CONTEXT_H__ /* * Handy zooming tool * * Authors: * Lauris Kaplinski * Frank Felfe * * Copyright (C) 1999-2002 Authors * * Released under GNU GPL v2+, read the file 'COPYING' for more information. */ #include "ui/tools/tool-base.h" #define SP_ZOOM_CONTEXT(obj) (dynamic_cast((Inkscape::UI::Tools::ToolBase*)obj)) #define SP_IS_ZOOM_CONTEXT(obj) (dynamic_cast((const Inkscape::UI::Tools::ToolBase*)obj) != NULL) namespace Inkscape { namespace UI { namespace Tools { class ZoomTool : public ToolBase { public: ZoomTool(SPDesktop *desktop); ~ZoomTool() override; bool root_handler(GdkEvent *event) override; private: bool escaped; }; } } } #endif