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

Method onBeginFrame

src/fl/ui/checkbox.cpp.hpp:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11UICheckbox::~UICheckbox() FL_NOEXCEPT {}
12
13void UICheckbox::Listener::onBeginFrame() FL_NOEXCEPT {
14 UICheckbox &owner = *mOwner;
15 if (!owner.mLastFrameValueValid) {
16 owner.mLastFrameValue = owner.value();
17 owner.mLastFrameValueValid = true;
18 return;
19 }
20 bool value = owner.value();
21 if (value != owner.mLastFrameValue) {
22 owner.mCallbacks.invoke(owner);
23 owner.mLastFrameValue = value;
24 }
25}
26
27} // namespace fl

Callers

nothing calls this directly

Calls 2

valueMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected