ESPHome  2024.3.2
Public Member Functions | Protected Attributes
esphome::text::TextTraits Class Reference

#include <text_traits.h>

Public Member Functions

void set_min_length (int min_length)
 
int get_min_length () const
 
void set_max_length (int max_length)
 
int get_max_length () const
 
void set_pattern (std::string pattern)
 
std::string get_pattern () const
 
void set_mode (TextMode mode)
 
TextMode get_mode () const
 

Protected Attributes

int min_length_
 
int max_length_
 
std::string pattern_
 
TextMode mode_ {TEXT_MODE_TEXT}
 

Detailed Description

Definition at line 15 of file text_traits.h.

Member Function Documentation

◆ get_max_length()

int esphome::text::TextTraits::get_max_length ( ) const
inline

Definition at line 21 of file text_traits.h.

◆ get_min_length()

int esphome::text::TextTraits::get_min_length ( ) const
inline

Definition at line 19 of file text_traits.h.

◆ get_mode()

TextMode esphome::text::TextTraits::get_mode ( ) const
inline

Definition at line 29 of file text_traits.h.

◆ get_pattern()

std::string esphome::text::TextTraits::get_pattern ( ) const
inline

Definition at line 25 of file text_traits.h.

◆ set_max_length()

void esphome::text::TextTraits::set_max_length ( int  max_length)
inline

Definition at line 20 of file text_traits.h.

◆ set_min_length()

void esphome::text::TextTraits::set_min_length ( int  min_length)
inline

Definition at line 18 of file text_traits.h.

◆ set_mode()

void esphome::text::TextTraits::set_mode ( TextMode  mode)
inline

Definition at line 28 of file text_traits.h.

◆ set_pattern()

void esphome::text::TextTraits::set_pattern ( std::string  pattern)
inline

Definition at line 24 of file text_traits.h.

Field Documentation

◆ max_length_

int esphome::text::TextTraits::max_length_
protected

Definition at line 33 of file text_traits.h.

◆ min_length_

int esphome::text::TextTraits::min_length_
protected

Definition at line 32 of file text_traits.h.

◆ mode_

TextMode esphome::text::TextTraits::mode_ {TEXT_MODE_TEXT}
protected

Definition at line 35 of file text_traits.h.

◆ pattern_

std::string esphome::text::TextTraits::pattern_
protected

Definition at line 34 of file text_traits.h.


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