Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
manipulator.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
5/* Authors:
6 * Krzysztof KosiƄski <tweenk.pl@gmail.com>
7 *
8 * Copyright (C) 2009 Authors
9 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
10 */
11
12#ifndef INKSCAPE_UI_TOOL_MANIPULATOR_H
13#define INKSCAPE_UI_TOOL_MANIPULATOR_H
14
15#include <set>
16#include <map>
17#include <cstddef>
18#include <sigc++/sigc++.h>
19#include <glib.h>
20#include <gdk/gdk.h>
21#include "ui/tools/tool-base.h"
22
23class SPDesktop;
24namespace Inkscape {
25namespace UI {
26
27class ControlPointSelection;
28
34{
35public:
37 : _desktop(d)
38 {}
39 virtual ~Manipulator() = default;
40
42 virtual bool event(Inkscape::UI::Tools::ToolBase *tool, CanvasEvent const &event) = 0;
44};
45
51 : public Manipulator
52 , public sigc::trackable
53{
54public:
59
68
69protected:
71};
72
73} // namespace UI
74} // namespace Inkscape
75
76#endif // INKSCAPE_UI_TOOL_MANIPULATOR_H
77
78/*
79 Local Variables:
80 mode:c++
81 c-file-style:"stroustrup"
82 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
83 indent-tabs-mode:nil
84 fill-column:99
85 End:
86*/
87// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Group of selected control points.
Tool component that processes events and does something in response to them.
Definition manipulator.h:34
SPDesktop *const _desktop
Definition manipulator.h:43
Manipulator(SPDesktop *d)
Definition manipulator.h:36
virtual bool event(Inkscape::UI::Tools::ToolBase *tool, CanvasEvent const &event)=0
Handle input event. Returns true if handled.
virtual ~Manipulator()=default
Tool component that edits something on the canvas using selectable control points.
Definition manipulator.h:53
ExtremumType
Type of extremum points to add in PathManipulator::insertNodeAtExtremum.
Definition manipulator.h:62
PointManipulator(SPDesktop *d, ControlPointSelection &sel)
Definition manipulator.h:55
ControlPointSelection & _selection
Definition manipulator.h:70
Base class for Event processors.
Definition tool-base.h:95
To do: update description of desktop.
Definition desktop.h:149
Helper class to stream background task notifications as a series of messages.
Abstract base class for events.