Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
flood-tool.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef INKSCAPE_UI_TOOLS_FLOOD_TOOL_H
3#define INKSCAPE_UI_TOOLS_FLOOD_TOOL_H
4
5/*
6 * Flood fill drawing context
7 *
8 * Authors:
9 * Lauris Kaplinski <lauris@kaplinski.com>
10 * John Bintz <jcoswell@coswellproductions.org>
11 *
12 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
13 */
14
15#include "ui/tools/tool-base.h"
16
17namespace Inkscape { class Selection; }
18
19namespace Inkscape::UI::Tools {
20
21class FloodTool : public ToolBase
22{
23public:
25 ~FloodTool() override;
26
27 SPItem *item = nullptr;
28
29 sigc::connection sel_changed_connection;
30
31 bool root_handler(CanvasEvent const &event) override;
32 bool item_handler(SPItem *item, CanvasEvent const &event) override;
33
34 static void set_channels(int channels);
35
36 static std::vector<char const *> const channel_list;
37 static std::vector<char const *> const gap_list;
38
39private:
40 void selection_changed(Selection *selection);
41 void finishItem();
42};
43
55
56} // namespace Inkscape::UI::Tools
57
58#endif // INKSCAPE_UI_TOOLS_FLOOD_TOOL_H
59
60/*
61 Local Variables:
62 mode:c++
63 c-file-style:"stroustrup"
64 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
65 indent-tabs-mode:nil
66 fill-column:99
67 End:
68*/
69// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
The set of selected SPObjects for a given document and layer model.
Definition selection.h:80
void selection_changed(Selection *selection)
Callback that processes the "changed" signal on the selection; destroys old and creates new knotholde...
static std::vector< char const * > const channel_list
Definition flood-tool.h:36
bool root_handler(CanvasEvent const &event) override
sigc::connection sel_changed_connection
Definition flood-tool.h:29
bool item_handler(SPItem *item, CanvasEvent const &event) override
Handles item specific events.
static std::vector< char const * > const gap_list
Definition flood-tool.h:37
static void set_channels(int channels)
Base class for Event processors.
Definition tool-base.h:95
To do: update description of desktop.
Definition desktop.h:149
Base class for visual SVG elements.
Definition sp-item.h:109
Helper class to stream background task notifications as a series of messages.
Abstract base class for events.
SPDesktop * desktop