FastLED 3.9.15
Loading...
Searching...
No Matches

◆ removeFromDrawList()

void fl::Channel::removeFromDrawList ( )

Remove this channel from the global controller draw list.

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

735 {
736 if (!isInList()) {
737 FL_WARN("Channel '" << mName << "': Skipping removeFromDrawList() - not in draw list");
738 return;
739 }
741 // Fire event after removing from draw list (detectable even if user bypasses FastLED.remove())
742 auto& events = ChannelEvents::instance();
743 events.onChannelRemoved(*this);
744
745 // Clear driver weak_ptr when removed from draw list
746 mDriver.reset();
747}
void removeFromDrawList() FL_NOEXCEPT
Remove this controller from the draw list.
bool isInList() const FL_NOEXCEPT
Check if this controller is in the linked list.
fl::weak_ptr< IChannelDriver > mDriver
Definition channel.h:256
fl::string mName
Definition channel.h:277
#define FL_WARN(X)
Definition log.h:276
static ChannelEvents & instance()

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

+ Here is the call graph for this function: