diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:29:01 +0000 |
commit | 35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch) | |
tree | 657d15a03cc46bd099fc2c6546a7a4ad43815d9f /src/event.h | |
parent | Initial commit. (diff) | |
download | inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.tar.xz inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.zip |
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/event.h')
-rw-r--r-- | src/event.h | 58 |
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 : |