1 #ifndef SEEN_KNOT_ENUMS_H
2 #define SEEN_KNOT_ENUMS_H
4 /** \file
5 * Some enums used by SPKnot and by related types \& functions.
6 *
7 * Authors:
8 * Lauris Kaplinski <lauris@kaplinski.com>
9 *
10 * Copyright (C) 1999-2002 authors
11 * Copyright (C) 2001-2002 Ximian, Inc.
12 *
13 * Released under GNU GPL, read the file 'COPYING' for more information
14 */
16 typedef enum {
17 SP_KNOT_SHAPE_SQUARE,
18 SP_KNOT_SHAPE_DIAMOND,
19 SP_KNOT_SHAPE_CIRCLE,
20 SP_KNOT_SHAPE_CROSS,
21 SP_KNOT_SHAPE_BITMAP,
22 SP_KNOT_SHAPE_IMAGE
23 } SPKnotShapeType;
25 typedef enum {
26 SP_KNOT_MODE_COLOR,
27 SP_KNOT_MODE_XOR
28 } SPKnotModeType;
30 typedef enum {
31 SP_KNOT_STATE_NORMAL,
32 SP_KNOT_STATE_MOUSEOVER,
33 SP_KNOT_STATE_DRAGGING,
34 SP_KNOT_STATE_HIDDEN
35 } SPKnotStateType;
37 #define SP_KNOT_VISIBLE_STATES 3
39 enum {
40 SP_KNOT_VISIBLE = 1 << 0,
41 SP_KNOT_MOUSEOVER = 1 << 1,
42 SP_KNOT_DRAGGING = 1 << 2,
43 SP_KNOT_GRABBED = 1 << 3
44 };
47 #endif /* !SEEN_KNOT_ENUMS_H */
49 /*
50 Local Variables:
51 mode:c++
52 c-file-style:"stroustrup"
53 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
54 indent-tabs-mode:nil
55 fill-column:99
56 End:
57 */
58 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :