1 #ifndef SEEN_ARC_CONTEXT_H
2 #define SEEN_ARC_CONTEXT_H
4 /*
5 * Ellipse drawing context
6 *
7 * Authors:
8 * Mitsuru Oka
9 * Lauris Kaplinski <lauris@kaplinski.com>
10 *
11 * Copyright (C) 2000-2002 Lauris Kaplinski
12 * Copyright (C) 2000-2001 Ximian, Inc.
13 * Copyright (C) 2002 Mitsuru Oka
14 *
15 * Released under GNU GPL, read the file 'COPYING' for more information
16 */
18 #include <sigc++/connection.h>
20 #include <2geom/point.h>
21 #include "event-context.h"
23 #define SP_TYPE_ARC_CONTEXT (sp_arc_context_get_type())
24 #define SP_ARC_CONTEXT(obj) (GTK_CHECK_CAST((obj), SP_TYPE_ARC_CONTEXT, SPArcContext))
25 #define SP_ARC_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST((klass), SP_TYPE_ARC_CONTEXT, SPArcContextClass))
26 #define SP_IS_ARC_CONTEXT(obj) (GTK_CHECK_TYPE((obj), SP_TYPE_ARC_CONTEXT))
27 #define SP_IS_ARC_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), SP_TYPE_ARC_CONTEXT))
29 class SPArcContext;
30 class SPArcContextClass;
32 struct SPArcContext : public SPEventContext {
33 SPItem *item;
34 Geom::Point center;
36 sigc::connection sel_changed_connection;
38 Inkscape::MessageContext *_message_context;
39 };
41 struct SPArcContextClass {
42 SPEventContextClass parent_class;
43 };
45 /* Standard Gtk function */
47 GtkType sp_arc_context_get_type(void);
50 #endif /* !SEEN_ARC_CONTEXT_H */
52 /*
53 Local Variables:
54 mode:c++
55 c-file-style:"stroustrup"
56 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
57 indent-tabs-mode:nil
58 fill-column:99
59 End:
60 */
61 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :