1
by mental
moving trunk for module inkscape |
1 |
#ifndef SEEN_DRAW_ANCHOR_H
|
2 |
#define SEEN_DRAW_ANCHOR_H
|
|
3 |
||
4 |
/** \file
|
|
5 |
* Drawing anchors.
|
|
6 |
*/
|
|
7 |
||
8 |
#include <glib/gtypes.h> |
|
6885
by Ted Gould
From trunk |
9 |
#include <2geom/point.h> |
1
by mental
moving trunk for module inkscape |
10 |
|
11 |
struct SPDrawContext; |
|
12 |
struct SPCurve; |
|
13 |
struct SPCanvasItem; |
|
14 |
||
15 |
/// The drawing anchor.
|
|
16 |
/// \todo Make this a regular knot, this will allow to set statusbar tips.
|
|
17 |
struct SPDrawAnchor { |
|
18 |
SPDrawContext *dc; |
|
19 |
SPCurve *curve; |
|
20 |
guint start : 1; |
|
21 |
guint active : 1; |
|
6885
by Ted Gould
From trunk |
22 |
Geom::Point dp; |
1
by mental
moving trunk for module inkscape |
23 |
SPCanvasItem *ctrl; |
24 |
};
|
|
25 |
||
26 |
||
1637
by kidproto
peeled back the gboolean code as it hit on some complexity theory principles... |
27 |
SPDrawAnchor *sp_draw_anchor_new(SPDrawContext *dc, SPCurve *curve, gboolean start, |
6885
by Ted Gould
From trunk |
28 |
Geom::Point delta); |
1
by mental
moving trunk for module inkscape |
29 |
SPDrawAnchor *sp_draw_anchor_destroy(SPDrawAnchor *anchor); |
6885
by Ted Gould
From trunk |
30 |
SPDrawAnchor *sp_draw_anchor_test(SPDrawAnchor *anchor, Geom::Point w, gboolean activate); |
1
by mental
moving trunk for module inkscape |
31 |
|
32 |
||
33 |
#endif /* !SEEN_DRAW_ANCHOR_H */ |
|
34 |
||
35 |
/*
|
|
36 |
Local Variables:
|
|
37 |
mode:c++
|
|
38 |
c-file-style:"stroustrup"
|
|
39 |
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
|
|
40 |
indent-tabs-mode:nil
|
|
41 |
fill-column:99
|
|
42 |
End:
|
|
43 |
*/
|
|
9020
by JazzyNico
Code refactoring and merging with trunk (revision 10599). |
44 |
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
|