OpenCPN Partial API docs
|
Keeps listening over it's lifespan, removes itself on destruction. More...
#include <observable.h>
Public Member Functions | |
ObservableListener () | |
Default constructor, does not listen to anything. | |
ObservableListener (const std::string &k, wxEvtHandler *l, wxEventType e) | |
Construct a listening object. | |
ObservableListener (const KeyProvider &kp, wxEvtHandler *l, wxEventType e) | |
ObservableListener (ObservableListener &&other) | |
A listener can only be transferred using std::move(). | |
ObservableListener (const ObservableListener &other)=delete | |
ObservableListener & | operator= (ObservableListener &)=delete |
void | Listen (const std::string &key, wxEvtHandler *listener, wxEventType evt) |
Set object to send wxEventType ev to listener on changes in key. | |
void | Listen (const KeyProvider &kp, wxEvtHandler *l, wxEventType evt) |
Keeps listening over it's lifespan, removes itself on destruction.
Definition at line 133 of file observable.h.