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

Method onBeginFrame

src/fl/ui/number_field.cpp.hpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15UINumberField::~UINumberField() FL_NOEXCEPT {}
16
17void UINumberField::Listener::onBeginFrame() FL_NOEXCEPT {
18 UINumberField &owner = *mOwner;
19 if (!owner.mLastFrameValueValid) {
20 owner.mLastFrameValue = owner.value();
21 owner.mLastFrameValueValid = true;
22 return;
23 }
24 double value = owner.value();
25 if (value != owner.mLastFrameValue) {
26 owner.mCallbacks.invoke(owner);
27 owner.mLastFrameValue = value;
28 }
29}
30
31} // namespace fl
32

Callers

nothing calls this directly

Calls 2

valueMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected