GuiValueBoxFloat method

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

Implementation

@override
(int result, double value) GuiValueBoxFloat(
  RectangleD bounds,
  String? text,
  String textValue,
  num value,
  bool editMode,
) => run(
  () => RaylibDebugLabels.GuiValueBoxFloat(bounds, text, textValue, value, editMode),
  () {
    final valuePtr = rl.Temp.Float32$.Ref1(value.toDouble());
    final result = rl.Gui.GuiValueBoxFloat.run5(
      rl.Temp.Rectangle$.Ref1(bounds).toJS,
      text?.toJS,
      textValue.toJS,
      valuePtr.toJS,
      editMode.toJS,
    ).toInt();
    return (result, valuePtr.value);
  },
);