1 #ifndef __SP_GRADIENT_CONTEXT_H__
2 #define __SP_GRADIENT_CONTEXT_H__
4 /*
5 * Gradient drawing and editing tool
6 *
7 * Authors:
8 * bulia byak <buliabyak@users.sf.net>
9 * Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
10 *
11 * Copyright (C) 2007 Johan Engelen
12 * Copyright (C) 2005 Authors
13 *
14 * Released under GNU GPL
15 */
17 #include <sigc++/sigc++.h>
18 #include "event-context.h"
20 #define SP_TYPE_GRADIENT_CONTEXT (sp_gradient_context_get_type())
21 #define SP_GRADIENT_CONTEXT(obj) (GTK_CHECK_CAST((obj), SP_TYPE_GRADIENT_CONTEXT, SPGradientContext))
22 #define SP_GRADIENT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST((klass), SP_TYPE_GRADIENT_CONTEXT, SPGradientContextClass))
23 #define SP_IS_GRADIENT_CONTEXT(obj) (GTK_CHECK_TYPE((obj), SP_TYPE_GRADIENT_CONTEXT))
24 #define SP_IS_GRADIENT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), SP_TYPE_GRADIENT_CONTEXT))
26 class SPGradientContext;
27 class SPGradientContextClass;
29 struct SPGradientContext : public SPEventContext {
31 Geom::Point origin;
33 bool cursor_addnode;
35 bool node_added;
37 Geom::Point mousepoint_doc; // stores mousepoint when over_line in doc coords
39 Inkscape::MessageContext *_message_context;
41 sigc::connection *selcon;
42 sigc::connection *subselcon;
43 };
45 struct SPGradientContextClass {
46 SPEventContextClass parent_class;
47 };
49 /* Standard Gtk function */
50 GtkType sp_gradient_context_get_type();
52 void sp_gradient_context_select_next (SPEventContext *event_context);
53 void sp_gradient_context_select_prev (SPEventContext *event_context);
55 #endif
58 /*
59 Local Variables:
60 mode:c++
61 c-file-style:"stroustrup"
62 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
63 indent-tabs-mode:nil
64 fill-column:99
65 End:
66 */
67 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :