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