1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Basic text input support

This commit is contained in:
Emil Ernerfeldt
2020-04-29 21:25:49 +02:00
parent 89823ab617
commit 14db237b1d
15 changed files with 434 additions and 29 deletions

View File

@@ -28,6 +28,9 @@ pub struct Style {
/// For stuff like check marks in check boxes.
pub line_width: f32,
pub cursor_blink_hz: f32,
pub text_cursor_width: f32,
// TODO: add ability to disable animations!
/// How many seconds a typical animation should last
pub animation_time: f32,
@@ -50,6 +53,8 @@ impl Default for Style {
clickable_diameter: 22.0,
start_icon_width: 16.0,
line_width: 1.0,
cursor_blink_hz: 1.0,
text_cursor_width: 2.0,
animation_time: 1.0 / 20.0,
window: Window::default(),
}