Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
actions-canvas-snapping.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Gio::Actions for toggling snapping preferences. Tied to a particular document.
4 *
5 * As preferences are stored per document, changes should be propagated to any window with same document.
6 *
7 * Copyright (C) 2019 Tavmjong Bah
8 *
9 * The contents of this file may be used under the GNU General Public License Version 2 or later.
10 */
11
12#ifndef INK_ACTIONS_CANVAS_SNAPPING_H
13#define INK_ACTIONS_CANVAS_SNAPPING_H
14
15#include <vector>
16
17namespace Glib {
18class ustring;
19} // namespace Glib
20
21namespace Gio {
22class ActionMap;
23} // namespace Gio
24
25class SPDocument;
26
27namespace Inkscape {
28class SnapPreferences;
29} // namespace Inkscape
30
31void add_actions_canvas_snapping(Gio::ActionMap* map);
32std::vector<std::vector<Glib::ustring>> get_extra_data_canvas_snapping();
35void apply_simple_snap_defaults(Gio::ActionMap &map);
36
37#endif // INK_ACTIONS_CANVAS_SNAPPING_H
38
39/*
40 Local Variables:
41 mode:c++
42 c-file-style:"stroustrup"
43 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
44 indent-tabs-mode:nil
45 fill-column:99
46 End:
47*/
48// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
void transition_to_simple_snapping()
Simple snapping groups existing "advanced" options into three easy to understand choices (bounding bo...
Inkscape::SnapPreferences & get_snapping_preferences()
void apply_simple_snap_defaults(Gio::ActionMap &map)
void add_actions_canvas_snapping(Gio::ActionMap *map)
std::vector< std::vector< Glib::ustring > > get_extra_data_canvas_snapping()
Storing of snapping preferences.
Typed SVG document implementation.
Definition document.h:103
Helper class to stream background task notifications as a series of messages.