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

◆ removeFromDrawList()

void fl::Channel::removeFromDrawList ( )

Remove this channel from the global controller draw list.

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

1116 {
1117 if (!isInList()) {
1118 FL_WARN("Channel '" << mName << "': Skipping removeFromDrawList() - not in draw list");
1119 return;
1120 }
1122 // Fire event after removing from draw list (detectable even if user bypasses FastLED.remove())
1123 auto& events = ChannelEvents::instance();
1124 events.onChannelRemoved(*this);
1125
1126 // Clear driver weak_ptr when removed from draw list
1127 mDriver.reset();
1128}
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:433
fl::string mName
Definition channel.h:456
#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: