FifeGUI 0.3.0
A C++ GUI library designed for games.
event.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_EVENT_HPP_
6#define INCLUDE_FIFECHAN_EVENT_HPP_
7
8// Platform config include
9#include "fifechan/platform.hpp"
10
11namespace fcn
12{
13 class Widget;
14
24 class FIFEGUI_API Event
25 {
26 public:
32 explicit Event(Widget* source);
33
40 Widget* getSource() const;
41
42 protected:
46 Widget* mSource{nullptr};
47 };
48} // namespace fcn
49
50#endif // INCLUDE_FIFECHAN_EVENT_HPP_
Widget * mSource
Holds the source widget of the event.
Definition event.hpp:46
Event(Widget *source)
Constructor.
Definition event.cpp:16
Widget * getSource() const
Gets the source widget of the event.
Definition event.cpp:20
Abstract base class defining the common behavior, properties, and lifecycle of all GUI elements.
Definition widget.hpp:56
Used replacement tokens by configure_file():