FifeGUI 0.3.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 Fifechan contributors
4
5// Corresponding header include
6#include "fifechan/events/event.hpp"
7
8// Standard library includes
9#include <cassert>
10
11// Platform config include
12#include "fifechan/platform.hpp"
13
14namespace fcn
15{
16 Event::Event(Widget* source) : mSource(source)
17 {
18 }
19
21 {
22 return mSource;
23 }
24} // namespace fcn
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():