ESPHome 2025.5.0
Loading...
Searching...
No Matches
esphome::light::ColorModeHelper Class Reference

Helper class to allow bitwise operations on ColorMode with ColorCapability. More...

#include <color_mode.h>

Public Member Functions

constexpr ColorModeHelper (ColorMode val)
 
constexpr operator ColorMode () const
 
constexpr operator uint8_t () const
 
constexpr operator bool () const
 

Protected Attributes

ColorMode val_
 

Detailed Description

Helper class to allow bitwise operations on ColorMode with ColorCapability.

Definition at line 78 of file color_mode.h.

Constructor & Destructor Documentation

◆ ColorModeHelper()

esphome::light::ColorModeHelper::ColorModeHelper ( ColorMode val)
inlineconstexpr

Definition at line 80 of file color_mode.h.

Member Function Documentation

◆ operator bool()

esphome::light::ColorModeHelper::operator bool ( ) const
inlineconstexpr

Definition at line 83 of file color_mode.h.

◆ operator ColorMode()

esphome::light::ColorModeHelper::operator ColorMode ( ) const
inlineconstexpr

Definition at line 81 of file color_mode.h.

◆ operator uint8_t()

esphome::light::ColorModeHelper::operator uint8_t ( ) const
inlineconstexpr

Definition at line 82 of file color_mode.h.

Field Documentation

◆ val_

ColorMode esphome::light::ColorModeHelper::val_
protected

Definition at line 86 of file color_mode.h.


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