summaryrefslogtreecommitdiffstats
path: root/src/event-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/event-context.h')
-rw-r--r--src/event-context.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/event-context.h b/src/event-context.h
index 71084cb5f..1e641e6ef 100644
--- a/src/event-context.h
+++ b/src/event-context.h
@@ -1,12 +1,7 @@
-#ifndef __SP_EVENT_CONTEXT_H__
-#define __SP_EVENT_CONTEXT_H__
+#ifndef SEEN_SP_EVENT_CONTEXT_H
+#define SEEN_SP_EVENT_CONTEXT_H
-/** \file
- * SPEventContext: base class for event processors
- *
- * This is per desktop object, which (its derivatives) implements
- * different actions bound to mouse events.
- *
+/*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Frank Felfe <innerspace@iname.com>
@@ -18,17 +13,16 @@
*/
#include <glib-object.h>
-#include <gdk/gdktypes.h>
-#include <gdk/gdkevents.h>
+#include <gdk/gdk.h>
#include "knot.h"
#include "2geom/forward.h"
#include "preferences.h"
struct GrDrag;
-struct SPDesktop;
-struct SPItem;
-class ShapeEditor;
+class SPDesktop;
+class SPItem;
+class ShapeEditor;
struct SPEventContext;
namespace Inkscape {
@@ -39,6 +33,13 @@ namespace Inkscape {
}
}
+
+#define SP_TYPE_EVENT_CONTEXT (sp_event_context_get_type())
+#define SP_EVENT_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_EVENT_CONTEXT, SPEventContext))
+#define SP_IS_EVENT_CONTEXT(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), SP_TYPE_EVENT_CONTEXT))
+
+GType sp_event_context_get_type();
+
gboolean sp_event_context_snap_watchdog_callback(gpointer data);
void sp_event_context_discard_delayed_snap_event(SPEventContext *ec);
@@ -90,6 +91,9 @@ void sp_event_context_snap_delay_handler(SPEventContext *ec, gpointer const dse_
/**
* Base class for Event processors.
+ *
+ * This is per desktop object, which (its derivatives) implements
+ * different actions bound to mouse events.
*/
struct SPEventContext : public GObject {
void enableSelectionCue (bool enable=true);
@@ -185,7 +189,7 @@ void ec_shape_event_attr_changed(Inkscape::XML::Node *shape_repr,
void event_context_print_event_info(GdkEvent *event, bool print_return = true);
-#endif
+#endif // SEEN_SP_EVENT_CONTEXT_H
/*