FifeGUI 0.3.0
A C++ GUI library designed for games.
actionevent.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause
2// SPDX-FileCopyrightText: 2004 - 2008 Olof Naessén and Per Larsson
3// SPDX-FileCopyrightText: 2013 - 2026 Fifengine contributors
4
5// Corresponding header include
6#include "fifechan/events/actionevent.hpp"
7
8// Standard library includes
9#include <cassert>
10#include <string>
11#include <utility>
12
13// Project headers (subdirs before local)
14#include "fifechan/events/event.hpp"
15
16namespace fcn
17{
18 ActionEvent::ActionEvent(Widget* source, std::string id) : Event(source), mId(std::move(id))
19 {
20 (void)source;
21 }
22
23 std::string const & ActionEvent::getId() const
24 {
25 return mId;
26 }
27} // namespace fcn
std::string const & getId() const
Returns the event identifier.
std::string mId
Holds the identifier of the event.
ActionEvent(Widget *source, std::string id)
Constructor.
Event(Widget *source)
Constructor.
Definition event.cpp:16
Abstract base class defining the common behavior, properties, and lifecycle of all GUI elements.
Definition widget.hpp:56
Used replacement tokens by configure_file():