summaryrefslogtreecommitdiffstats
path: root/src/knot-enums.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:29:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:29:01 +0000
commit35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch)
tree657d15a03cc46bd099fc2c6546a7a4ad43815d9f /src/knot-enums.h
parentInitial commit. (diff)
downloadinkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.tar.xz
inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.zip
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/knot-enums.h')
-rw-r--r--src/knot-enums.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/knot-enums.h b/src/knot-enums.h
new file mode 100644
index 0000000..47ae978
--- /dev/null
+++ b/src/knot-enums.h
@@ -0,0 +1,64 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+#ifndef SEEN_KNOT_ENUMS_H
+#define SEEN_KNOT_ENUMS_H
+
+/**
+ * @file
+ * Some enums used by SPKnot and by related types \& functions.
+ */
+/*
+ * Authors:
+ * Lauris Kaplinski <lauris@kaplinski.com>
+ *
+ * Copyright (C) 1999-2002 authors
+ * Copyright (C) 2001-2002 Ximian, Inc.
+ *
+ * Released under GNU GPL v2+, read the file 'COPYING' for more information.
+ */
+
+enum SPKnotShapeType {
+ SP_KNOT_SHAPE_SQUARE,
+ SP_KNOT_SHAPE_DIAMOND,
+ SP_KNOT_SHAPE_CIRCLE,
+ SP_KNOT_SHAPE_TRIANGLE,
+ SP_KNOT_SHAPE_CROSS,
+ SP_KNOT_SHAPE_BITMAP,
+ SP_KNOT_SHAPE_IMAGE
+};
+
+enum SPKnotModeType {
+ SP_KNOT_MODE_COLOR,
+ SP_KNOT_MODE_XOR
+};
+
+enum SPKnotStateType {
+ SP_KNOT_STATE_NORMAL,
+ SP_KNOT_STATE_MOUSEOVER,
+ SP_KNOT_STATE_DRAGGING,
+ SP_KNOT_STATE_SELECTED,
+ SP_KNOT_STATE_HIDDEN
+};
+
+#define SP_KNOT_VISIBLE_STATES 4
+
+enum {
+ SP_KNOT_VISIBLE = 1 << 0,
+ SP_KNOT_MOUSEOVER = 1 << 1,
+ SP_KNOT_DRAGGING = 1 << 2,
+ SP_KNOT_GRABBED = 1 << 3,
+ SP_KNOT_SELECTED = 1 << 4
+};
+
+
+#endif /* !SEEN_KNOT_ENUMS_H */
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :