Flutter Engine
The Flutter Engine
|
#include <SkIDChangeListener.h>
Public Member Functions | |
List () | |
~List () | |
void | add (sk_sp< SkIDChangeListener > listener) SK_EXCLUDES(fMutex) |
int | count () const SK_EXCLUDES(fMutex) |
void | changed () SK_EXCLUDES(fMutex) |
void | reset () SK_EXCLUDES(fMutex) |
Manages a list of SkIDChangeListeners.
Definition at line 43 of file SkIDChangeListener.h.
|
default |
List::~List | ( | ) |
Definition at line 29 of file SkIDChangeListener.cpp.
void List::add | ( | sk_sp< SkIDChangeListener > | listener | ) |
Add a new listener to the list. It must not already be deregistered. Also clears out previously deregistered listeners.
Definition at line 39 of file SkIDChangeListener.cpp.
void List::changed | ( | ) |
Calls changed() on all listeners that haven't been deregistered and resets the list.
Definition at line 60 of file SkIDChangeListener.cpp.
int List::count | ( | ) | const |
The number of registered listeners (including deregisterd listeners that are yet-to-be removed.
Definition at line 55 of file SkIDChangeListener.cpp.
void List::reset | ( | ) |
Resets without calling changed() on the listeners.
Definition at line 70 of file SkIDChangeListener.cpp.