FastLED 3.10.10
Loading...
Searching...
No Matches

◆ removeFromDrawList()

void fl::Channel::removeFromDrawList ( )

Remove this channel from the global controller draw list.

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

1153 {
1154 if (!isInList()) {
1155 FL_WARN("Channel '" << mName << "': Skipping removeFromDrawList() - not in draw list");
1156 return;
1157 }
1159 // Fire event after removing from draw list (detectable even if user bypasses FastLED.remove())
1160 auto& events = ChannelEvents::instance();
1161 events.onChannelRemoved(*this);
1162
1163 // Clear driver weak_ptr when removed from draw list
1164 mDriver.reset();
1165}
bool isInList() const FL_NO_EXCEPT
Check if this controller is in the linked list.
void removeFromDrawList() FL_NO_EXCEPT
Remove this controller from the draw list.
fl::weak_ptr< IChannelDriver > mDriver
Definition channel.h:435
fl::string mName
Definition channel.h:453
#define FL_WARN(...)
Definition log.h:437
static ChannelEvents & instance() FL_NO_EXCEPT

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

Referenced by CFastLED::remove().

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