Skip to main content

field_input

Function field_input 

Source
pub fn field_input(
    ui: &mut Ui,
    field: &FormField,
    current: &mut Value,
    probe: Option<&mut HashMap<String, Rect>>,
    actions: &mut FieldActions,
) -> (bool, Rect)
Expand description

Emit ONLY the input widget(s) for one field — NO leading label, NO forced row layout (the caller supplies both: the form view puts the label ABOVE and gives the input the full width; the settings tree puts the label in the tree node and this input in the row’s right-aligned content). Writes any change back into current at the field’s path, returns (changed, interactive_widget_rect).

probe, when present, additionally receives each OPEN enum item’s rect (keyed "<path>#<variant>") and a reference field’s activation, per-line and per-line-remove rects ("<path>#activate", "<path>#line<index>", "<path>#x<index>") for the headed verifier.

actions is the out-param for what is NOT a value: a Button press, a Reference’s Select press, and the entity a hovered reference line names.