ESPHome
2024.11.1
|
A half-open range of LEDs, inclusive of the begin index and exclusive of the end index, using zero-based numbering. More...
#include <esp_range_view.h>
Public Member Functions | |
ESPRangeView (AddressableLight *parent, int32_t begin, int32_t end) | |
ESPRangeView (const ESPRangeView &)=default | |
int32_t | size () const |
ESPColorView | operator[] (int32_t index) const |
ESPRangeIterator | begin () |
ESPRangeIterator | end () |
void | set (const Color &color) override |
void | set (const ESPHSVColor &color) |
void | set_red (uint8_t red) override |
void | set_green (uint8_t green) override |
void | set_blue (uint8_t blue) override |
void | set_white (uint8_t white) override |
void | set_effect_data (uint8_t effect_data) override |
void | fade_to_white (uint8_t amnt) override |
void | fade_to_black (uint8_t amnt) override |
void | lighten (uint8_t delta) override |
void | darken (uint8_t delta) override |
ESPRangeView & | operator= (const Color &rhs) |
ESPRangeView & | operator= (const ESPColorView &rhs) |
ESPRangeView & | operator= (const ESPHSVColor &rhs) |
ESPRangeView & | operator= (const ESPRangeView &rhs) |
Public Member Functions inherited from esphome::light::ESPColorSettable | |
void | set (const ESPHSVColor &color) |
void | set_hsv (const ESPHSVColor &color) |
void | set_rgb (uint8_t red, uint8_t green, uint8_t blue) |
void | set_rgbw (uint8_t red, uint8_t green, uint8_t blue, uint8_t white) |
Protected Attributes | |
friend | ESPRangeIterator |
AddressableLight * | parent_ |
int32_t | begin_ |
int32_t | end_ |
A half-open range of LEDs, inclusive of the begin index and exclusive of the end index, using zero-based numbering.
Definition at line 17 of file esp_range_view.h.
|
inline |
Definition at line 19 of file esp_range_view.h.
|
default |
ESPRangeIterator esphome::light::ESPRangeView::begin | ( | ) |
Definition at line 17 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 59 of file esp_range_view.cpp.
ESPRangeIterator esphome::light::ESPRangeView::end | ( | ) |
Definition at line 18 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 51 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 47 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 55 of file esp_range_view.cpp.
|
inline |
Definition at line 41 of file esp_range_view.h.
|
inline |
Definition at line 45 of file esp_range_view.h.
|
inline |
Definition at line 49 of file esp_range_view.h.
ESPRangeView & esphome::light::ESPRangeView::operator= | ( | const ESPRangeView & | rhs | ) |
Definition at line 63 of file esp_range_view.cpp.
ESPColorView esphome::light::ESPRangeView::operator[] | ( | int32_t | index | ) | const |
Definition at line 13 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 20 of file esp_range_view.cpp.
|
inline |
Definition at line 29 of file esp_range_view.h.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 34 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 42 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 30 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 26 of file esp_range_view.cpp.
|
overridevirtual |
Implements esphome::light::ESPColorSettable.
Definition at line 38 of file esp_range_view.cpp.
|
inline |
Definition at line 23 of file esp_range_view.h.
|
protected |
Definition at line 59 of file esp_range_view.h.
|
protected |
Definition at line 60 of file esp_range_view.h.
|
protected |
Definition at line 56 of file esp_range_view.h.
|
protected |
Definition at line 58 of file esp_range_view.h.