FifeGUI 0.2.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#include <string>
9
10#include "fifechan/event.hpp"
11#include "fifechan/platform.hpp"
12
13namespace fcn
14{
15 class Widget;
16
41 class FIFEGUI_API ActionEvent : public Event
42 {
43 public:
50 ActionEvent(Widget* source, std::string id);
51
60 std::string const & getId() const;
61
62 protected:
66 std::string mId;
67 };
68} // namespace fcn
69
70#endif // INCLUDE_FIFECHAN_ACTIONEVENT_HPP_
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