Code

reenable buil inkview on windows
[inkscape.git] / src / star-context.h
1 #ifndef __SP_STAR_CONTEXT_H__
2 #define __SP_STAR_CONTEXT_H__
4 /*
5  * Star drawing context
6  *
7  * Authors:
8  *   Mitsuru Oka <oka326@parkcity.ne.jp>
9  *   Lauris Kaplinski <lauris@kaplinski.com>
10  *
11  * Copyright (C) 1999-2002 Lauris Kaplinski
12  * Copyright (C) 2001-2002 Mitsuru Oka
13  *
14  * Released under GNU GPL, read the file 'COPYING' for more information
15  */
17 #include <sigc++/sigc++.h>
18 #include "event-context.h"
19 #include "libnr/nr-point.h"
20 struct SPKnotHolder;
22 #define SP_TYPE_STAR_CONTEXT (sp_star_context_get_type ())
23 #define SP_STAR_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_STAR_CONTEXT, SPStarContext))
24 #define SP_STAR_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_STAR_CONTEXT, SPStarContextClass))
25 #define SP_IS_STAR_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_STAR_CONTEXT))
26 #define SP_IS_STAR_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_STAR_CONTEXT))
28 class SPStarContext;
29 class SPStarContextClass;
31 struct SPStarContext : public SPEventContext {
32         SPItem *item;
33         NR::Point center;
35         /* Number of corners */
36         gint magnitude;
37         /* Outer/inner radius ratio */
38         gdouble proportion;
39         /* flat sides or not? */
40         bool isflatsided;
41         /* rounded corners ratio */
42         gdouble rounded;
43         // randomization
44         gdouble randomized;
46     sigc::connection sel_changed_connection;
48         Inkscape::MessageContext *_message_context;
49 };
51 struct SPStarContextClass {
52         SPEventContextClass parent_class;
53 };
55 GtkType sp_star_context_get_type (void);
57 #endif