FifeGUI 0.2.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#include "fifechan/actionevent.hpp"
6
7#include <string>
8#include <utility>
9
10#include "fifechan/event.hpp"
11
12namespace fcn
13{
14 ActionEvent::ActionEvent(Widget* source, std::string id) : Event(source), mId(std::move(id)) { }
15
16 std::string const & ActionEvent::getId() const
17 {
18 return mId;
19 }
20} // namespace fcn
std::string const & getId() const
Gets the identifier of the event.
std::string mId
Holds the identifier of the event.
ActionEvent(Widget *source, std::string id)
Constructor.
Event(Widget *source)
Constructor.
Definition event.cpp:9
Abstract base class defining the common behavior, properties, and lifecycle of all GUI elements.
Definition widget.hpp:45