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 *
10 * Copyright (C) 2005 Authors
11 *
12 * Released under GNU GPL
13 */
15 #include <sigc++/sigc++.h>
16 #include "event-context.h"
17 #include "libnr/nr-point.h"
18 struct SPKnotHolder;
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 NR::Point origin;
33 bool cursor_addnode;
35 bool node_added;
37 NR::Point mousepoint_doc; // stores mousepoint when over_line in doc coords
39 Inkscape::MessageContext *_message_context;
40 };
42 struct SPGradientContextClass {
43 SPEventContextClass parent_class;
44 };
46 /* Standard Gtk function */
47 GtkType sp_gradient_context_get_type();
49 void sp_gradient_context_select_next (SPEventContext *event_context);
50 void sp_gradient_context_select_prev (SPEventContext *event_context);
52 #endif
55 /*
56 Local Variables:
57 mode:c++
58 c-file-style:"stroustrup"
59 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
60 indent-tabs-mode:nil
61 fill-column:99
62 End:
63 */
64 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :