ferrocad_widgets 0.1.4

Reusable bite-gpui widgets for FerroCAD: window chrome, editable field, console text area
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Events emitted by the editable widgets.

/// Emitted when the user presses `Enter`.
#[derive(Clone, Debug)]
pub struct SubmitEvent {
    pub text: String,
}

/// Emitted after every edit. A controlled parent mirrors this to keep its value
/// in step with the field.
#[derive(Clone, Debug)]
pub struct ChangeEvent {
    pub text: String,
}