summaryrefslogtreecommitdiffstats
path: root/src/select-context.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/select-context.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/select-context.h')
-rw-r--r--src/select-context.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/select-context.h b/src/select-context.h
new file mode 100644
index 000000000..b7e5748a0
--- /dev/null
+++ b/src/select-context.h
@@ -0,0 +1,52 @@
+#ifndef __SP_SELECT_CONTEXT_H__
+#define __SP_SELECT_CONTEXT_H__
+
+/*
+ * Select tool
+ *
+ * Authors:
+ * Lauris Kaplinski <lauris@kaplinski.com>
+ *
+ * Copyright (C) 1999-2002 authors
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include "event-context.h"
+
+#define SP_TYPE_SELECT_CONTEXT (sp_select_context_get_type ())
+#define SP_SELECT_CONTEXT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_SELECT_CONTEXT, SPSelectContext))
+#define SP_SELECT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_SELECT_CONTEXT, SPSelectContextClass))
+#define SP_IS_SELECT_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_SELECT_CONTEXT))
+#define SP_IS_SELECT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_SELECT_CONTEXT))
+
+class SPSelectContext;
+class SPSelectContextClass;
+
+namespace Inkscape {
+ class MessageContext;
+ class SelTrans;
+ class SelectionDescriber;
+}
+
+struct SPSelectContext : public SPEventContext {
+ guint dragging : 1;
+ guint moved : 1;
+ bool button_press_shift;
+ bool button_press_ctrl;
+ bool button_press_alt;
+ SPItem *item;
+ SPCanvasItem *grabbed;
+ Inkscape::SelTrans *_seltrans;
+ Inkscape::SelectionDescriber *_describer;
+};
+
+struct SPSelectContextClass {
+ SPEventContextClass parent_class;
+};
+
+/* Standard Gtk function */
+
+GtkType sp_select_context_get_type (void);
+
+#endif