Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
draw-anchor.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
/*
5 * Authors: see git history
6 *
7 * Copyright (C) 2014 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#ifndef SEEN_DRAW_ANCHOR_H
11#define SEEN_DRAW_ANCHOR_H
12
17#include <2geom/point.h>
18
20
21namespace Inkscape {
22
23class CanvasItemCtrl;
24
25namespace UI {
26namespace Tools {
27
28class FreehandBase;
29
30}
31}
32}
33
36
37// TODO Get rid of this class.
38
40{
41public:
43 std::shared_ptr<Geom::PathVector> curve;
44 bool start : 1;
45 bool active : 1;
48
50 std::shared_ptr<Geom::PathVector> curve, bool start, Geom::Point delta);
51
53
55};
56
57#endif /* !SEEN_DRAW_ANCHOR_H */
58
59/*
60 Local Variables:
61 mode:c++
62 c-file-style:"stroustrup"
63 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64 indent-tabs-mode:nil
65 fill-column:99
66 End:
67*/
68// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Cartesian point / 2D vector and related operations.
std::unique_ptr< T, CanvasItemUnlinkDeleter > CanvasItemPtr
Smart pointer used to hold CanvasItems, like std::unique_ptr.
Two-dimensional point that doubles as a vector.
Definition point.h:66
The drawing anchor.
Definition draw-anchor.h:40
Geom::Point dp
Definition draw-anchor.h:46
CanvasItemPtr< Inkscape::CanvasItemCtrl > ctrl
Definition draw-anchor.h:47
SPDrawAnchor * anchorTest(Geom::Point w, bool activate)
Test if point is near anchor, if so fill anchor on canvas and return pointer to it or NULL.
std::shared_ptr< Geom::PathVector > curve
Definition draw-anchor.h:43
Inkscape::UI::Tools::FreehandBase * dc
Definition draw-anchor.h:42
const double w
Definition conic-4.cpp:19
Helper class to stream background task notifications as a series of messages.
Definition curve.h:24
int delta
static void activate(GApplication *app, gpointer)