Code

create inkview on dist
[inkscape.git] / src / rect-context.h
1 #ifndef __SP_RECT_CONTEXT_H__
2 #define __SP_RECT_CONTEXT_H__
4 /*
5  * Rectangle drawing context
6  *
7  * Author:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 2000 Lauris Kaplinski
11  * Copyright (C) 2000-2001 Ximian, Inc.
12  * Copyright (C) 2002 Lauris Kaplinski
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_RECT_CONTEXT            (sp_rect_context_get_type ())
23 #define SP_RECT_CONTEXT(obj)            (GTK_CHECK_CAST ((obj), SP_TYPE_RECT_CONTEXT, SPRectContext))
24 #define SP_RECT_CONTEXT_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_RECT_CONTEXT, SPRectContextClass))
25 #define SP_IS_RECT_CONTEXT(obj)         (GTK_CHECK_TYPE ((obj), SP_TYPE_RECT_CONTEXT))
26 #define SP_IS_RECT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_RECT_CONTEXT))
28 class SPRectContext;
29 class SPRectContextClass;
31 struct SPRectContext : public SPEventContext {
32         SPItem *item;
33         NR::Point center;
35         gdouble rx;     /* roundness radius (x direction) */
36         gdouble ry;     /* roundness radius (y direction) */
38         sigc::connection sel_changed_connection;
40         Inkscape::MessageContext *_message_context;
41 };
43 struct SPRectContextClass {
44         SPEventContextClass parent_class;
45 };
47 /* Standard Gtk function */
49 GtkType sp_rect_context_get_type (void);
51 #endif