FifeGUI 0.3.0
A C++ GUI library designed for games.
actionevent.hpp
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#ifndef INCLUDE_FIFECHAN_ACTIONEVENT_HPP_
6#define INCLUDE_FIFECHAN_ACTIONEVENT_HPP_
7
8// Standard library includes
9#include <string>
10
11// Platform config include
12#include "fifechan/platform.hpp"
13
14// Project headers (subdirs before local)
15#include "fifechan/events/event.hpp"
16
17namespace fcn
18{
19 class Widget;
20
45 class FIFEGUI_API ActionEvent : public Event
46 {
47 public:
54 ActionEvent(Widget* source, std::string id);
55
65 std::string const & getId() const;
66
67 protected:
71 std::string mId;
72 };
73} // namespace fcn
74
75#endif // INCLUDE_FIFECHAN_ACTIONEVENT_HPP_
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():