node-context.h revision 04c99c338ffdc6e10cb6f5c18f6f06b3f555e8eb
#ifndef __SP_NODE_CONTEXT_H__
#define __SP_NODE_CONTEXT_H__
/*
* Node editing context
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* bulia byak <buliabyak@users.sf.net>
*
* This code is in public domain
*/
#include "event-context.h"
#include "forward.h"
#include "display/display-forward.h"
#include "nodepath.h"
#define SP_TYPE_NODE_CONTEXT (sp_node_context_get_type ())
#define SP_NODE_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_NODE_CONTEXT, SPNodeContextClass))
enum { SP_NODE_CONTEXT_INACTIVE,
struct SPNodeContext {
// FIXME: shouldn't this be a pointer???
/// If true, rubberband was cancelled by esc, so the next button release should not deselect.
bool rb_escaped;
bool cursor_drag;
bool added_node;
unsigned int current_state;
int remove_flash_counter;
};
struct SPNodeContextClass {
};
/* Standard Gtk function */
GtkType sp_node_context_get_type (void);
void sp_node_context_selection_modified (Inkscape::Selection * selection, guint flags, gpointer data);
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :