diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/star-context.h | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/star-context.h')
| -rw-r--r-- | src/star-context.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/star-context.h b/src/star-context.h new file mode 100644 index 000000000..6ad7025c0 --- /dev/null +++ b/src/star-context.h @@ -0,0 +1,57 @@ +#ifndef __SP_STAR_CONTEXT_H__ +#define __SP_STAR_CONTEXT_H__ + +/* + * Star drawing context + * + * Authors: + * Mitsuru Oka <oka326@parkcity.ne.jp> + * Lauris Kaplinski <lauris@kaplinski.com> + * + * Copyright (C) 1999-2002 Lauris Kaplinski + * Copyright (C) 2001-2002 Mitsuru Oka + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include <sigc++/sigc++.h> +#include "event-context.h" +#include "libnr/nr-point.h" +struct SPKnotHolder; + +#define SP_TYPE_STAR_CONTEXT (sp_star_context_get_type ()) +#define SP_STAR_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_STAR_CONTEXT, SPStarContext)) +#define SP_STAR_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_STAR_CONTEXT, SPStarContextClass)) +#define SP_IS_STAR_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_STAR_CONTEXT)) +#define SP_IS_STAR_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_STAR_CONTEXT)) + +class SPStarContext; +class SPStarContextClass; + +struct SPStarContext : public SPEventContext { + SPItem *item; + NR::Point center; + + /* Number of corners */ + gint magnitude; + /* Outer/inner radius ratio */ + gdouble proportion; + /* flat sides or not? */ + bool isflatsided; + /* rounded corners ratio */ + gdouble rounded; + // randomization + gdouble randomized; + + sigc::connection sel_changed_connection; + + Inkscape::MessageContext *_message_context; +}; + +struct SPStarContextClass { + SPEventContextClass parent_class; +}; + +GtkType sp_star_context_get_type (void); + +#endif |
