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(
      rl.Temp.Rectangle$.Ref1(bounds).ref,
      valuePtr,
      textSize.toInt(),
      editMode,
    );
    return (result, valuePtr.toD);
  },
);