1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Improved text edit with cursor that can be moved with arrow keys

This commit is contained in:
Emil Ernerfeldt
2020-05-16 19:38:46 +02:00
parent 89aa285255
commit c0e7f947ff
7 changed files with 199 additions and 47 deletions

View File

@@ -2,6 +2,7 @@ use std::collections::{HashMap, HashSet};
use crate::{
containers::{area, collapsing_header, menu, resize, scroll_area},
widgets::text_edit,
Id, Layer, Pos2, Rect,
};
@@ -19,8 +20,9 @@ pub struct Memory {
// states of various types of widgets
pub(crate) collapsing_headers: HashMap<Id, collapsing_header::State>,
pub(crate) menu_bar: HashMap<Id, menu::BarState>,
pub(crate) scroll_areas: HashMap<Id, scroll_area::State>,
pub(crate) resize: HashMap<Id, resize::State>,
pub(crate) scroll_areas: HashMap<Id, scroll_area::State>,
pub(crate) text_edit: HashMap<Id, text_edit::State>,
pub(crate) areas: Areas,
}