GuiValueBox method

(GuiResult, int) GuiValueBox(
  1. RectangleD bounds,
  2. String? text,
  3. num value,
  4. num minValue,
  5. num maxValue,
  6. bool editMode,
)

Value Box control, updates input text with numbers

Implementation

(GuiResult result, int value) GuiValueBox(
  RectangleD bounds,
  String? text,
  num value,
  num minValue,
  num maxValue,
  bool editMode,
) => run(
  () => _debugLabels.GuiValueBox(bounds, text, value, minValue, maxValue, editMode),
  () {
    final valuePtr = $.Int$.Ref1(value.toInt());
    final result = _flat.GuiValueBox(
      bounds,
      $.String$.ValueOrNull(text),
      valuePtr,
      minValue.toInt(),
      maxValue.toInt(),
      editMode,
    );
    return (.fromValue(result), valuePtr.value);
  },
);