Code

Fixed signed/unsigned problem with precision calc. Fixes bug #399604.
[inkscape.git] / src / enums.h
1 #ifndef __SP_ENUMS_H__
2 #define __SP_ENUMS_H__
4 /*
5  * Main program enumerated types
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 1999-2003 Lauris Kaplinski
11  *
12  * Released under GNU GPL, read the file 'COPYING' for more information
13  */
15 /* preserveAspectRatio */
17 enum {
18         SP_ASPECT_NONE,
19         SP_ASPECT_XMIN_YMIN,
20         SP_ASPECT_XMID_YMIN,
21         SP_ASPECT_XMAX_YMIN,
22         SP_ASPECT_XMIN_YMID,
23         SP_ASPECT_XMID_YMID,
24         SP_ASPECT_XMAX_YMID,
25         SP_ASPECT_XMIN_YMAX,
26         SP_ASPECT_XMID_YMAX,
27         SP_ASPECT_XMAX_YMAX
28 };
30 enum {
31         SP_ASPECT_MEET,
32         SP_ASPECT_SLICE
33 };
35 /* maskUnits */
36 /* maskContentUnits */
38 enum {
39         SP_CONTENT_UNITS_USERSPACEONUSE,
40         SP_CONTENT_UNITS_OBJECTBOUNDINGBOX
41 };
43 /* markerUnits */
45 enum {
46         SP_MARKER_UNITS_STROKEWIDTH,
47         SP_MARKER_UNITS_USERSPACEONUSE
48 };
50 /* stroke-linejoin */
51 /* stroke-linecap */
53 /* markers */
55 enum {
56   SP_MARKER_NONE,
57   SP_MARKER_TRIANGLE,
58   SP_MARKER_ARROW
59 };
61 /* fill-rule */
62 /* clip-rule */
64 enum {
65         SP_CLONE_COMPENSATION_PARALLEL,
66         SP_CLONE_COMPENSATION_UNMOVED,
67         SP_CLONE_COMPENSATION_NONE
68 };
70 enum {
71         SP_CLONE_ORPHANS_UNLINK,
72         SP_CLONE_ORPHANS_DELETE,
73         SP_CLONE_ORPHANS_ASKME
74 };
76 /* "inlayer" preference values */
78 enum PrefsSelectionContext {
79     PREFS_SELECTION_ALL = 0,
80     PREFS_SELECTION_LAYER = 1,
81     PREFS_SELECTION_LAYER_RECURSIVE = 2,
82 };
84 #endif