ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
text_call.h
Go to the documentation of this file.
1#pragma once
2
4#include "text_traits.h"
5
6namespace esphome::text {
7
8class Text;
9
10class TextCall {
11 public:
12 explicit TextCall(Text *parent) : parent_(parent) {}
13 void perform();
14
15 TextCall &set_value(const std::string &value);
16 TextCall &set_value(const char *value, size_t len);
17
18 protected:
19 Text *const parent_;
21 void validate_();
22};
23
24} // namespace esphome::text
TextCall & set_value(const std::string &value)
Definition text_call.cpp:9
TextCall(Text *parent)
Definition text_call.h:12
optional< std::string > value_
Definition text_call.h:20
Base-class for all text inputs.
Definition text.h:21
std::string size_t len
Definition helpers.h:817