ESPHome  2024.12.2
Public Member Functions
esphome::display_menu_base::MenuItemCommand Class Reference

#include <menu_item.h>

Inheritance diagram for esphome::display_menu_base::MenuItemCommand:
esphome::display_menu_base::MenuItem

Public Member Functions

 MenuItemCommand ()
 
bool select_next () override
 
bool select_prev () override
 
- Public Member Functions inherited from esphome::display_menu_base::MenuItem
 MenuItem (MenuItemType t)
 
void set_parent (MenuItemMenu *parent)
 
MenuItemMenuget_parent ()
 
MenuItemType get_type () const
 
template<typename V >
void set_text (V val)
 
void add_on_enter_callback (std::function< void()> &&cb)
 
void add_on_leave_callback (std::function< void()> &&cb)
 
void add_on_value_callback (std::function< void()> &&cb)
 
std::string get_text () const
 
virtual bool get_immediate_edit () const
 
virtual bool has_value () const
 
virtual std::string get_value_text () const
 
void on_enter ()
 
void on_leave ()
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::display_menu_base::MenuItem
void on_value_ ()
 
- Protected Attributes inherited from esphome::display_menu_base::MenuItem
MenuItemType item_type_
 
MenuItemMenuparent_ {nullptr}
 
TemplatableValue< std::string, const MenuItem * > text_
 
CallbackManager< void()> on_enter_callbacks_ {}
 
CallbackManager< void()> on_leave_callbacks_ {}
 
CallbackManager< void()> on_value_callbacks_ {}
 

Detailed Description

Definition at line 162 of file menu_item.h.

Constructor & Destructor Documentation

◆ MenuItemCommand()

esphome::display_menu_base::MenuItemCommand::MenuItemCommand ( )
inlineexplicit

Definition at line 164 of file menu_item.h.

Member Function Documentation

◆ select_next()

bool esphome::display_menu_base::MenuItemCommand::select_next ( )
overridevirtual

Reimplemented from esphome::display_menu_base::MenuItem.

Definition at line 175 of file menu_item.cpp.

◆ select_prev()

bool esphome::display_menu_base::MenuItemCommand::select_prev ( )
overridevirtual

Reimplemented from esphome::display_menu_base::MenuItem.

Definition at line 180 of file menu_item.cpp.


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