Skip to navigation
Egui single text edit line, like input text field
14.02.23
pub struct TextEdit<'t, S: TextBuffer = String> { /* fields omitted */ } A text region that the user can edit the contents of. See also Ui::text_edit_singleline and Ui::text_edit_multiline. Example: let response = ui.add(egui::TextEdit::singleline(&mut my_string)); if response.changed() { // … } if response.lost_focus() && ui.input().key_pressed(egui::Key::Enter) { // … }
https://docs.rs/egui/0.14.2/egui/widgets/struct.TextEdit.html
Reply
Anonymous
Information Epoch 1732453392
Make every program a filter.
Home
Notebook
Contact us