GuiValueBoxFloat method

(GuiResult, double) GuiValueBoxFloat(
  1. RectangleD bounds,
  2. String? text,
  3. String textValue,
  4. num value,
  5. bool editMode,
)

Value box control for float values

Implementation

(GuiResult result, double value) GuiValueBoxFloat(
  RectangleD bounds,
  String? text,
  String textValue,
  num value,
  bool editMode,
) => run(
  () => _debugLabels.GuiValueBoxFloat(bounds, text, textValue, value, editMode),
  () {
    final valuePtr = $.Float$.Ref1(value.toDouble());
    final result = _flat.GuiValueBoxFloat(
      bounds,
      $.String$.ValueOrNull(text),
      $.String$.ValueOrNull(textValue),
      valuePtr,
      editMode,
    );
    return (.fromValue(result), valuePtr.value);
  },
);