ESPHome  2024.10.2
Public Member Functions | Protected Attributes
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()

constexpr esphome::light::ColorModeHelper::ColorModeHelper ( ColorMode  val)
inline

Definition at line 80 of file color_mode.h.

Member Function Documentation

◆ operator bool()

constexpr esphome::light::ColorModeHelper::operator bool ( ) const
inline

Definition at line 83 of file color_mode.h.

◆ operator ColorMode()

constexpr esphome::light::ColorModeHelper::operator ColorMode ( ) const
inline

Definition at line 81 of file color_mode.h.

◆ operator uint8_t()

constexpr esphome::light::ColorModeHelper::operator uint8_t ( ) const
inline

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: