FifeGUI 0.3.0
A C++ GUI library designed for games.
containerevent.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_CONTAINEREVENT_HPP_
6#define INCLUDE_FIFECHAN_CONTAINEREVENT_HPP_
7
8// Platform config include
9#include "fifechan/platform.hpp"
10
11// Project headers (subdirs before local)
12#include "fifechan/events/event.hpp"
13
14namespace fcn
15{
16 class Container;
17 class Widget;
18
33 class FIFEGUI_API ContainerEvent : public Event
34 {
35 public:
42 ContainerEvent(Widget* source, Container* container);
43
49 Container* getContainer() const;
50
51 protected:
56 };
57} // namespace fcn
58
59#endif // INCLUDE_FIFECHAN_CONTAINEREVENT_HPP_
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:36
Event(Widget *source)
Constructor.
Definition event.cpp:16
Abstract base class defining the common behavior, properties, and lifecycle of all GUI elements.
Definition widget.hpp:56
Used replacement tokens by configure_file():