ESPHome  2025.2.0
Public Member Functions | Protected Attributes
esphome::lvgl::LvglCondition< Tc, Ts > Class Template Reference

#include <lvgl_esphome.h>

Inheritance diagram for esphome::lvgl::LvglCondition< Tc, Ts >:
esphome::Condition< Ts... > esphome::Parented< Tc >

Public Member Functions

 LvglCondition (std::function< bool(Tc *)> &&condition_lambda)
 
bool check (Ts... x) override
 
- Public Member Functions inherited from esphome::Condition< Ts... >
bool check_tuple (const std::tuple< Ts... > &tuple)
 Call check with a tuple of values as parameter. More...
 
- Public Member Functions inherited from esphome::Parented< Tc >
 Parented ()
 
 Parented (Tc *parent)
 
Tc * get_parent () const
 Get the parent of this object. More...
 
void set_parent (Tc *parent)
 Set the parent of this object. More...
 

Protected Attributes

std::function< bool(Tc *)> condition_lambda_ {}
 
- Protected Attributes inherited from esphome::Parented< Tc >
Tc * parent_
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::Condition< Ts... >
bool check_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >)
 

Detailed Description

template<typename Tc, typename... Ts>
class esphome::lvgl::LvglCondition< Tc, Ts >

Definition at line 260 of file lvgl_esphome.h.

Constructor & Destructor Documentation

◆ LvglCondition()

template<typename Tc , typename... Ts>
esphome::lvgl::LvglCondition< Tc, Ts >::LvglCondition ( std::function< bool(Tc *)> &&  condition_lambda)
inline

Definition at line 262 of file lvgl_esphome.h.

Member Function Documentation

◆ check()

template<typename Tc , typename... Ts>
bool esphome::lvgl::LvglCondition< Tc, Ts >::check ( Ts...  x)
inlineoverridevirtual

Implements esphome::Condition< Ts... >.

Definition at line 263 of file lvgl_esphome.h.

Field Documentation

◆ condition_lambda_

template<typename Tc , typename... Ts>
std::function<bool(Tc *)> esphome::lvgl::LvglCondition< Tc, Ts >::condition_lambda_ {}
protected

Definition at line 266 of file lvgl_esphome.h.


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