| 26 | namespace fl { |
| 27 | |
| 28 | struct 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 | |
| 47 | class RectangularDrawBuffer { |
| 48 | public: |
no outgoing calls
no test coverage detected