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"
21 #define SP_TYPE_SPIRAL_CONTEXT (sp_spiral_context_get_type ())
22 #define SP_SPIRAL_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_SPIRAL_CONTEXT, SPSpiralContext))
23 #define SP_SPIRAL_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_SPIRAL_CONTEXT, SPSpiralContextClass))
24 #define SP_IS_SPIRAL_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_SPIRAL_CONTEXT))
25 #define SP_IS_SPIRAL_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_SPIRAL_CONTEXT))
27 class SPSpiralContext;
28 class SPSpiralContextClass;
30 struct SPSpiralContext : public SPEventContext {
31 SPItem * item;
32 NR::Point center;
33 gdouble revo;
34 gdouble exp;
35 gdouble t0;
37 sigc::connection sel_changed_connection;
39 Inkscape::MessageContext *_message_context;
40 };
42 struct SPSpiralContextClass {
43 SPEventContextClass parent_class;
44 };
46 /* Standard Gtk function */
48 GtkType sp_spiral_context_get_type (void);
50 #endif