ESPHome  2024.3.2
Public Member Functions | Protected Attributes
esphome::light::ESPColorView Class Reference

#include <esp_color_view.h>

Inheritance diagram for esphome::light::ESPColorView:
esphome::light::ESPColorSettable

Public Member Functions

 ESPColorView (uint8_t *red, uint8_t *green, uint8_t *blue, uint8_t *white, uint8_t *effect_data, const ESPColorCorrection *color_correction)
 
ESPColorViewoperator= (const Color &rhs)
 
ESPColorViewoperator= (const ESPHSVColor &rhs)
 
void set (const Color &color) override
 
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
 
Color get () const
 
uint8_t get_red () const
 
uint8_t get_red_raw () const
 
uint8_t get_green () const
 
uint8_t get_green_raw () const
 
uint8_t get_blue () const
 
uint8_t get_blue_raw () const
 
uint8_t get_white () const
 
uint8_t get_white_raw () const
 
uint8_t get_effect_data () const
 
void raw_set_color_correction (const ESPColorCorrection *color_correction)
 
- 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

uint8_t *const red_
 
uint8_t *const green_
 
uint8_t *const blue_
 
uint8_t *const white_
 
uint8_t *const effect_data_
 
const ESPColorCorrectioncolor_correction_
 

Detailed Description

Definition at line 38 of file esp_color_view.h.

Constructor & Destructor Documentation

◆ ESPColorView()

esphome::light::ESPColorView::ESPColorView ( uint8_t *  red,
uint8_t *  green,
uint8_t *  blue,
uint8_t *  white,
uint8_t *  effect_data,
const ESPColorCorrection color_correction 
)
inline

Definition at line 40 of file esp_color_view.h.

Member Function Documentation

◆ darken()

void esphome::light::ESPColorView::darken ( uint8_t  delta)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 73 of file esp_color_view.h.

◆ fade_to_black()

void esphome::light::ESPColorView::fade_to_black ( uint8_t  amnt)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 71 of file esp_color_view.h.

◆ fade_to_white()

void esphome::light::ESPColorView::fade_to_white ( uint8_t  amnt)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 70 of file esp_color_view.h.

◆ get()

Color esphome::light::ESPColorView::get ( ) const
inline

Definition at line 74 of file esp_color_view.h.

◆ get_blue()

uint8_t esphome::light::ESPColorView::get_blue ( ) const
inline

Definition at line 79 of file esp_color_view.h.

◆ get_blue_raw()

uint8_t esphome::light::ESPColorView::get_blue_raw ( ) const
inline

Definition at line 80 of file esp_color_view.h.

◆ get_effect_data()

uint8_t esphome::light::ESPColorView::get_effect_data ( ) const
inline

Definition at line 91 of file esp_color_view.h.

◆ get_green()

uint8_t esphome::light::ESPColorView::get_green ( ) const
inline

Definition at line 77 of file esp_color_view.h.

◆ get_green_raw()

uint8_t esphome::light::ESPColorView::get_green_raw ( ) const
inline

Definition at line 78 of file esp_color_view.h.

◆ get_red()

uint8_t esphome::light::ESPColorView::get_red ( ) const
inline

Definition at line 75 of file esp_color_view.h.

◆ get_red_raw()

uint8_t esphome::light::ESPColorView::get_red_raw ( ) const
inline

Definition at line 76 of file esp_color_view.h.

◆ get_white()

uint8_t esphome::light::ESPColorView::get_white ( ) const
inline

Definition at line 81 of file esp_color_view.h.

◆ get_white_raw()

uint8_t esphome::light::ESPColorView::get_white_raw ( ) const
inline

Definition at line 86 of file esp_color_view.h.

◆ lighten()

void esphome::light::ESPColorView::lighten ( uint8_t  delta)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 72 of file esp_color_view.h.

◆ operator=() [1/2]

ESPColorView& esphome::light::ESPColorView::operator= ( const Color rhs)
inline

Definition at line 48 of file esp_color_view.h.

◆ operator=() [2/2]

ESPColorView& esphome::light::ESPColorView::operator= ( const ESPHSVColor rhs)
inline

Definition at line 52 of file esp_color_view.h.

◆ raw_set_color_correction()

void esphome::light::ESPColorView::raw_set_color_correction ( const ESPColorCorrection color_correction)
inline

Definition at line 96 of file esp_color_view.h.

◆ set()

void esphome::light::ESPColorView::set ( const Color color)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 56 of file esp_color_view.h.

◆ set_blue()

void esphome::light::ESPColorView::set_blue ( uint8_t  blue)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 59 of file esp_color_view.h.

◆ set_effect_data()

void esphome::light::ESPColorView::set_effect_data ( uint8_t  effect_data)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 65 of file esp_color_view.h.

◆ set_green()

void esphome::light::ESPColorView::set_green ( uint8_t  green)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 58 of file esp_color_view.h.

◆ set_red()

void esphome::light::ESPColorView::set_red ( uint8_t  red)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 57 of file esp_color_view.h.

◆ set_white()

void esphome::light::ESPColorView::set_white ( uint8_t  white)
inlineoverridevirtual

Implements esphome::light::ESPColorSettable.

Definition at line 60 of file esp_color_view.h.

Field Documentation

◆ blue_

uint8_t* const esphome::light::ESPColorView::blue_
protected

Definition at line 103 of file esp_color_view.h.

◆ color_correction_

const ESPColorCorrection* esphome::light::ESPColorView::color_correction_
protected

Definition at line 106 of file esp_color_view.h.

◆ effect_data_

uint8_t* const esphome::light::ESPColorView::effect_data_
protected

Definition at line 105 of file esp_color_view.h.

◆ green_

uint8_t* const esphome::light::ESPColorView::green_
protected

Definition at line 102 of file esp_color_view.h.

◆ red_

uint8_t* const esphome::light::ESPColorView::red_
protected

Definition at line 101 of file esp_color_view.h.

◆ white_

uint8_t* const esphome::light::ESPColorView::white_
protected

Definition at line 104 of file esp_color_view.h.


The documentation for this class was generated from the following file: