Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ui::TextFieldConfig Struct Reference

Starting text, placeholder and limit of a TextField. More...

#include <aegis2d/ui/text_field.hpp>

Public Attributes

std::string text {}
 Text the field starts with, cut at max_length.
 
std::string placeholder {}
 Shown dimmed while the field is empty.
 
std::size_t max_length = 64
 Most characters (code points) the field holds, at least 1.
 

Detailed Description

Starting text, placeholder and limit of a TextField.

Member Data Documentation

◆ max_length

std::size_t aegis2d::ui::TextFieldConfig::max_length = 64

Most characters (code points) the field holds, at least 1.

◆ placeholder

std::string aegis2d::ui::TextFieldConfig::placeholder {}

Shown dimmed while the field is empty.

◆ text

std::string aegis2d::ui::TextFieldConfig::text {}

Text the field starts with, cut at max_length.


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