FastLED 3.10.8
Loading...
Searching...
No Matches

◆ addToDrawList()

void fl::Channel::addToDrawList ( )

Add this channel to the global controller draw list.

Definition at line 1105 of file channel.cpp.hpp.

1105 {
1106 if (isInList()) {
1107 FL_WARN("Channel '" << mName << "': Skipping addToDrawList() - already in draw list");
1108 return;
1109 }
1111 // Fire event after adding to draw list (detectable even if user bypasses FastLED.add())
1112 auto& events = ChannelEvents::instance();
1113 events.onChannelAdded(*this);
1114}
bool isInList() const FL_NO_EXCEPT
Check if this controller is in the linked list.
void addToList() FL_NO_EXCEPT
Add this controller to the linked list.
fl::string mName
Definition channel.h:456
#define FL_WARN(...)
Definition log.h:437
static ChannelEvents & instance() FL_NO_EXCEPT

References fl::CLEDController::addToList(), fl::FL_NO_EXCEPT, FL_WARN, fl::ChannelEvents::instance(), fl::CLEDController::isInList(), and mName.

Referenced by CFastLED::add().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: