FifeGUI 0.3.0
A C++ GUI library designed for games.
selectionlistener.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_SELECTIONLISTENER_HPP_
6#define INCLUDE_FIFECHAN_SELECTIONLISTENER_HPP_
7
8// Standard library includes
9#include <string>
10
11// Platform config include
12#include "fifechan/platform.hpp"
13
14// Project headers (subdirs before local)
15#include "fifechan/events/selectionevent.hpp"
16
17namespace fcn
18{
29 class FIFEGUI_API SelectionListener
30 {
31 public:
32 virtual ~SelectionListener() = default;
33
38
43
48
53
61 virtual void valueChanged(SelectionEvent const & event)
62 {
63 }
64
65 protected:
72 SelectionListener() = default;
73 };
74} // namespace fcn
75
76#endif // INCLUDE_FIFECHAN_SELECTIONLISTENER_HPP_
Represents a change in selection state (e.g., list item selected).
SelectionListener & operator=(SelectionListener const &)=default
Copy assignment operator.
SelectionListener(SelectionListener &&)=default
Move constructor.
SelectionListener & operator=(SelectionListener &&)=default
Move assignment operator.
SelectionListener(SelectionListener const &)=default
Copy constructor.
virtual void valueChanged(SelectionEvent const &event)
Called when the value of a selection has been changed in a Widget.
SelectionListener()=default
Protected default constructor.
Used replacement tokens by configure_file():