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

Class DrawItem

src/fl/gfx/rectangular_draw_buffer.h:28–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace fl {
27
28struct DrawItem {
29 DrawItem() FL_NOEXCEPT = default;
30 DrawItem(u8 pin, u16 numLeds, bool is_rgbw);
31
32 // Rule of 5 for POD data
33 DrawItem(const DrawItem &other) FL_NOEXCEPT = default;
34 DrawItem &operator=(const DrawItem &other) = default;
35 DrawItem(DrawItem &&other) FL_NOEXCEPT = default;
36 DrawItem &operator=(DrawItem &&other) FL_NOEXCEPT = default;
37
38 u8 mPin = 0;
39 u32 mNumBytes = 0;
40 bool mIsRgbw = false;
41 bool operator!=(const DrawItem &other) const {
42 return mPin != other.mPin || mNumBytes != other.mNumBytes ||
43 mIsRgbw != other.mIsRgbw;
44 }
45};
46
47class RectangularDrawBuffer {
48 public:

Callers 4

addStripMethod · 0.85
showMethod · 0.85
addObjectMethod · 0.85
FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected