FifeGUI 0.2.0
A C++ GUI library designed for games.
containerevent.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/containerevent.hpp"
6
7#include "fifechan/event.hpp"
8
9namespace fcn
10{
11 ContainerEvent::ContainerEvent(Widget* source, Container* container) : Event(source), mContainer(container) { }
12
14 {
15 return mContainer;
16 }
17} // namespace fcn
Container * mContainer
Holds the container the event concerns.
Container * getContainer() const
Gets the container the event concerns.
ContainerEvent(Widget *source, Container *container)
Constructor.
A composite widget capable of holding and managing child widgets.
Definition container.hpp:32
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