GuiTextBox method

  1. @override
(int, String) GuiTextBox(
  1. RectangleD bounds,
  2. String? text,
  3. num textSize,
  4. bool editMode,
)
override

Implementation

@override
(int result, String value) GuiTextBox(
  RectangleD bounds,
  String? text,
  num textSize,
  bool editMode,
) => run(
  () => RaylibDebugLabels.GuiTextBox(bounds, text, textSize, editMode),
  () {
    final valuePtr = rl.Temp.String$.Ref1(text ?? '', textSize.toInt());
    final result = rl.Gui.GuiTextBox.run4(
      rl.Temp.Rectangle$.Ref1(bounds).toJS,
      valuePtr.toJS,
      textSize.toJS,
      editMode.toJS,
    );
    return (result.toInt(), valuePtr.value);
  },
);