WPILibC++ 2024.3.2
|
An event listener. More...
#include <cscore_oo.h>
Public Member Functions | |
VideoListener ()=default | |
VideoListener (std::function< void(const VideoEvent &event)> callback, int eventMask, bool immediateNotify) | |
Create an event listener. More... | |
VideoListener (const VideoListener &)=delete | |
VideoListener & | operator= (const VideoListener &)=delete |
VideoListener (VideoListener &&other) noexcept | |
VideoListener & | operator= (VideoListener &&other) noexcept |
~VideoListener () | |
Friends | |
void | swap (VideoListener &first, VideoListener &second) noexcept |
An event listener.
This calls back to a desigated callback function when an event matching the specified mask is generated by the library.
|
default |
|
inline |
Create an event listener.
callback | Callback function |
eventMask | Bitmask of VideoEvent::Kind values |
immediateNotify | Whether callback should be immediately called with a representative set of events for the current library state. |
|
delete |
|
inlinenoexcept |
|
inline |
|
delete |
|
inlinenoexcept |
|
friend |