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