MCPcopy Create free account
hub / github.com/FastLED/FastLED / removeFromDrawList

Method removeFromDrawList

src/fl/channels/channel.cpp.hpp:735–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735void Channel::removeFromDrawList() {
736 if (!isInList()) {
737 FL_WARN("Channel '" << mName << "': Skipping removeFromDrawList() - not in draw list");
738 return;
739 }
740 CPixelLEDController<RGB>::removeFromDrawList();
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}
748
749int Channel::size() const {
750 return CPixelLEDController<RGB>::size();

Callers 6

removeMethod · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
channel.cppFile · 0.45

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected