FifeGUI 0.2.0
A C++ GUI library designed for games.
event.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/event.hpp"
6
7namespace fcn
8{
9 Event::Event(Widget* source) : mSource(source) { }
10
12 {
13 return mSource;
14 }
15} // namespace fcn
Widget * mSource
Holds the source widget of the event.
Definition event.hpp:45
Event(Widget *source)
Constructor.
Definition event.cpp:9
Widget * getSource() const
Gets the source widget of the event.
Definition event.cpp:11
Abstract base class defining the common behavior, properties, and lifecycle of all GUI elements.
Definition widget.hpp:45