Base class used as container for classes having listeners created by sf::TListener template.
More...
#include <TListener.h>
|
template<typename... Args> |
class | TListener |
| Allows access to appendListener() method from the TListener template.
|
|
Base class used as container for classes having listeners created by sf::TListener template.
◆ ~ListenerList()
sf::ListenerList::~ListenerList |
( |
| ) |
|
|
inline |
◆ cleanupListeners()
size_t sf::ListenerList::cleanupListeners |
( |
| ) |
|
|
inline |
Removes all invalid/unused entries.
There is no real need call this method explicitly since it is called when a new link is added. It is mainly used during unit tests to check proper functioning.
- Returns
- Amount of removed entries.
◆ flushListeners()
size_t sf::ListenerList::flushListeners |
( |
| ) |
|
|
inline |
Deletes all the linked entries in the list.
- Returns
- A mount of flushed entries.
◆ removeListener()
size_t sf::ListenerList::removeListener |
( |
base_type * |
entry | ) |
|
|
inline |
Removes the given entry from the list.
- Returns
- Amount of removed entries.
◆ TListener
template<typename... Args>
Allows access to appendListener() method from the TListener template.
The documentation for this class was generated from the following file: