Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
#ifndef INKSCAPE_EVENT_H
3
#define INKSCAPE_EVENT_H
4
5
/*
6
* Inkscape::Event -- Container for an XML::Event along with some additional information
7
* describing it.
8
*
9
* Author:
10
* Gustav Broberg <broberg@kth.se>
11
*
12
* Copyright (c) 2006 Authors
13
*
14
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
15
*/
16
17
18
#include <glibmm/ustring.h>
19
20
#include <utility>
21
22
#include "
xml/event-fns.h
"
23
24
namespace
Inkscape
{
25
namespace
XML {
26
class
Event;
27
}
28
}
29
30
namespace
Inkscape
{
31
32
class
Event
{
33
34
public
:
35
36
Event
(
XML::Event
*_event, Glib::ustring _description=
""
, Glib::ustring _icon_name=
""
)
37
:
event
(_event),
description
(
std
::move(_description)),
icon_name
(
std
::move(_icon_name)) { }
38
39
virtual
~Event
() {
sp_repr_free_log
(
event
); }
40
41
XML::Event
*
event
;
42
unsigned
int
type
= 0;
43
Glib::ustring
description
;
// The description to use in the Undo dialog.
44
Glib::ustring
icon_name
;
// The icon to use in the Undo dialog.
45
};
46
47
}
// namespace Inkscape
48
49
#endif
// INKSCAPE_EVENT_H
50
51
/*
52
Local Variables:
53
mode:c++
54
c-file-style:"stroustrup"
55
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
56
indent-tabs-mode:nil
57
fill-column:99
58
End:
59
*/
60
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Inkscape::Event
Definition
event.h:32
Inkscape::Event::icon_name
Glib::ustring icon_name
Definition
event.h:44
Inkscape::Event::type
unsigned int type
Definition
event.h:42
Inkscape::Event::~Event
virtual ~Event()
Definition
event.h:39
Inkscape::Event::event
XML::Event * event
Definition
event.h:41
Inkscape::Event::Event
Event(XML::Event *_event, Glib::ustring _description="", Glib::ustring _icon_name="")
Definition
event.h:36
Inkscape::Event::description
Glib::ustring description
Definition
event.h:43
Inkscape::XML::Event
Enumeration of all XML event types.
Definition
event.h:53
event-fns.h
TODO: insert short description here.
sp_repr_free_log
void sp_repr_free_log(Inkscape::XML::Event *log)
Definition
event.cpp:285
Inkscape
Helper class to stream background task notifications as a series of messages.
Definition
actions-canvas-snapping.h:27
std
STL namespace.
src
event.h
Generated on Sun Jun 22 2025 04:01:57 for Inkscape by
1.9.8