1 #ifndef __SP_SPIRAL_CONTEXT_H__
2 #define __SP_SPIRAL_CONTEXT_H__
4 /*
5 * Spiral drawing context
6 *
7 * Authors:
8 * Mitsuru Oka
9 * Lauris Kaplinski <lauris@kaplinski.com>
10 *
11 * Copyright (C) 1999-2001 Lauris Kaplinski
12 * Copyright (C) 2001-2002 Mitsuru Oka
13 *
14 * Released under GNU GPL
15 */
17 #include <sigc++/sigc++.h>
18 #include "event-context.h"
19 #include "libnr/nr-point.h"
20 struct SPKnotHolder;
22 #define SP_TYPE_SPIRAL_CONTEXT (sp_spiral_context_get_type ())
23 #define SP_SPIRAL_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_SPIRAL_CONTEXT, SPSpiralContext))
24 #define SP_SPIRAL_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_SPIRAL_CONTEXT, SPSpiralContextClass))
25 #define SP_IS_SPIRAL_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_SPIRAL_CONTEXT))
26 #define SP_IS_SPIRAL_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_SPIRAL_CONTEXT))
28 class SPSpiralContext;
29 class SPSpiralContextClass;
31 struct SPSpiralContext : public SPEventContext {
32 SPItem * item;
33 NR::Point center;
34 gdouble revo;
35 gdouble exp;
36 gdouble t0;
38 sigc::connection sel_changed_connection;
40 Inkscape::MessageContext *_message_context;
41 };
43 struct SPSpiralContextClass {
44 SPEventContextClass parent_class;
45 };
47 /* Standard Gtk function */
49 GtkType sp_spiral_context_get_type (void);
51 #endif