| 755 | } |
| 756 | |
| 757 | bool TextBox(TextEditState& text, const Vec2& pos, double width, const Optional<size_t>& maxChars, const bool enabled) |
| 758 | { |
| 759 | width = Max(width, MinTextBoxWidth); |
| 760 | |
| 761 | return TextBoxAt(text, pos + Vec2{ width * 0.5, 18.0 }, width, maxChars, enabled); |
| 762 | } |
| 763 | |
| 764 | bool TextBoxAt(TextEditState& text, const Vec2& center, const double _width, const Optional<size_t>& maxChars, const bool enabled) |
| 765 | { |