node-context.h revision 3266678238e05b3512e7da3a76c84f5ce4c93938
#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);
#endif