Code

Fix change in revision 9947 to be consistent with rest of the codebase.
[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"
21 #define SP_TYPE_RECT_CONTEXT            (sp_rect_context_get_type ())
22 #define SP_RECT_CONTEXT(obj)            (GTK_CHECK_CAST ((obj), SP_TYPE_RECT_CONTEXT, SPRectContext))
23 #define SP_RECT_CONTEXT_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_RECT_CONTEXT, SPRectContextClass))
24 #define SP_IS_RECT_CONTEXT(obj)         (GTK_CHECK_TYPE ((obj), SP_TYPE_RECT_CONTEXT))
25 #define SP_IS_RECT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_RECT_CONTEXT))
27 class SPRectContext;
28 class SPRectContextClass;
30 struct SPRectContext : public SPEventContext {
31         SPItem *item;
32         Geom::Point center;
34         gdouble rx;     /* roundness radius (x direction) */
35         gdouble ry;     /* roundness radius (y direction) */
37         sigc::connection sel_changed_connection;
39         Inkscape::MessageContext *_message_context;
40 };
42 struct SPRectContextClass {
43         SPEventContextClass parent_class;
44 };
46 /* Standard Gtk function */
48 GtkType sp_rect_context_get_type (void);
50 #endif