Code

Node tool: special case node duplication for endnodes - select new endnode
[inkscape.git] / src / gradient-context.h
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  *   Jon A. Cruz <jon@joncruz.org.
11  *
12  * Copyright (C) 2007 Johan Engelen
13  * Copyright (C) 2005,2010 Authors
14  *
15  * Released under GNU GPL
16  */
18 #include <sigc++/sigc++.h>
19 #include "event-context.h"
21 #define SP_TYPE_GRADIENT_CONTEXT            (sp_gradient_context_get_type())
22 #define SP_GRADIENT_CONTEXT(obj)            (GTK_CHECK_CAST((obj), SP_TYPE_GRADIENT_CONTEXT, SPGradientContext))
23 #define SP_GRADIENT_CONTEXT_CLASS(klass)    (GTK_CHECK_CLASS_CAST((klass), SP_TYPE_GRADIENT_CONTEXT, SPGradientContextClass))
24 #define SP_IS_GRADIENT_CONTEXT(obj)         (GTK_CHECK_TYPE((obj), SP_TYPE_GRADIENT_CONTEXT))
25 #define SP_IS_GRADIENT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), SP_TYPE_GRADIENT_CONTEXT))
27 class SPGradientContext;
28 class SPGradientContextClass;
30 struct SPGradientContext : public SPEventContext {
32     Geom::Point origin;
34     bool cursor_addnode;
36     bool node_added;
38     Geom::Point mousepoint_doc; // stores mousepoint when over_line in doc coords
40     Inkscape::MessageContext *_message_context;
42     sigc::connection *selcon;
43     sigc::connection *subselcon;
44 };
46 struct SPGradientContextClass {
47     SPEventContextClass parent_class;
48 };
50 /* Standard Gtk function */
51 GtkType sp_gradient_context_get_type();
53 void sp_gradient_context_select_next (SPEventContext *event_context);
54 void sp_gradient_context_select_prev (SPEventContext *event_context);
56 #endif
59 /*
60   Local Variables:
61   mode:c++
62   c-file-style:"stroustrup"
63   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64   indent-tabs-mode:nil
65   fill-column:99
66   End:
67 */
68 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :