* Struct representing gap parameters for corkscrew mapping */
| 62 | * Struct representing gap parameters for corkscrew mapping |
| 63 | */ |
| 64 | struct Gap { |
| 65 | int num_leds = 0; // Number of LEDs after which gap is activated, 0 = no gap |
| 66 | float gap = 0.0f; // Gap value from 0 to 1, represents percentage of width unit to add |
| 67 | |
| 68 | Gap() FL_NOEXCEPT = default; |
| 69 | Gap(float g) : num_leds(0), gap(g) {} // Backwards compatibility constructor |
| 70 | Gap(int n, float g) : num_leds(n), gap(g) {} // New constructor with num_leds |
| 71 | |
| 72 | // Rule of 5 for POD data |
| 73 | Gap(const Gap &other) FL_NOEXCEPT = default; |
| 74 | Gap &operator=(const Gap &other) = default; |
| 75 | Gap(Gap &&other) FL_NOEXCEPT = default; |
| 76 | Gap &operator=(Gap &&other) FL_NOEXCEPT = default; |
| 77 | }; |
| 78 | |
| 79 | // Maps a Corkscrew defined by the input to a cylindrical mapping for rendering |
| 80 | // a densly wrapped LED corkscrew. |
no outgoing calls
no test coverage detected