Code

First GSoC node tool commit to Bazaar
[inkscape.git] / src / ui / tool / node-types.h
1 /** @file
2  * Node types and other small enums.
3  * This file exists to reduce the number of includes pulled in by toolbox.cpp.
4  */
5 /* Authors:
6  *   Krzysztof KosiƄski <tweenk.pl@gmail.com>
7  *
8  * Copyright (C) 2009 Authors
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
12 #ifndef SEEN_UI_TOOL_NODE_TYPES_H
13 #define SEEN_UI_TOOL_NODE_TYPES_H
15 namespace Inkscape {
16 namespace UI {
18 /** Types of nodes supported in the node tool. */
19 enum NodeType {
20     NODE_CUSP, ///< Cusp node - no handle constraints
21     NODE_SMOOTH, ///< Smooth node - handles must be colinear
22     NODE_AUTO, ///< Auto node - handles adjusted automatically based on neighboring nodes
23     NODE_SYMMETRIC, ///< Symmetric node - handles must be colinear and of equal length
24     NODE_LAST_REAL_TYPE, ///< Last real type of node - used for ctrl+click on a node
25     NODE_PICK_BEST = 100 ///< Select type based on handle positions
26 };
28 /** Types of segments supported in the node tool. */
29 enum SegmentType {
30     SEGMENT_STRAIGHT, ///< Straight linear segment
31     SEGMENT_CUBIC_BEZIER ///< Bezier curve with two control points
32 };
34 } // namespace UI
35 } // namespace Inkscape
37 #endif
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:encoding=utf-8:textwidth=99 :