summaryrefslogtreecommitdiffstats
path: root/src/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.h')
-rw-r--r--src/event.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h
new file mode 100644
index 0000000..65a128d
--- /dev/null
+++ b/src/event.h
@@ -0,0 +1,58 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+#ifndef INKSCAPE_EVENT_H
+#define INKSCAPE_EVENT_H
+
+/*
+ * Inkscape::Event -- Container for an XML::Event along with some additional information
+ * describing it.
+ *
+ * Author:
+ * Gustav Broberg <broberg@kth.se>
+ *
+ * Copyright (c) 2006 Authors
+ *
+ * Released under GNU GPL v2+, read the file 'COPYING' for more information.
+ */
+
+
+#include <glibmm/ustring.h>
+
+#include <utility>
+
+#include "xml/event-fns.h"
+#include "verbs.h"
+
+namespace Inkscape {
+namespace XML {
+class Event;
+}
+}
+
+namespace Inkscape {
+
+struct Event {
+
+ Event(XML::Event *_event, unsigned int _type=SP_VERB_NONE, Glib::ustring _description="")
+ : event (_event), type (_type), description (std::move(_description)) { }
+
+ virtual ~Event() { sp_repr_free_log (event); }
+
+ XML::Event *event;
+ const unsigned int type;
+ Glib::ustring description;
+};
+
+} // namespace Inkscape
+
+#endif // INKSCAPE_EVENT_H
+
+/*
+ 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:fileencoding=utf-8:textwidth=99 :