GuiTextInputBox method

(int, String) GuiTextInputBox(
  1. RectangleD bounds,
  2. String? title,
  3. String? message,
  4. String buttons,
  5. String? text,
  6. num textMaxSize,
  7. bool? secretViewActive,
)

Implementation

(int result, String value) GuiTextInputBox(
  RectangleD bounds,
  String? title,
  String? message,
  String buttons,
  String? text,
  num textMaxSize,
  bool? secretViewActive,
) => run(
  () => 'GuiTextInputBox($bounds, $title, $message, $buttons, $text, $textMaxSize, $secretViewActive)',
  () {
    final valuePtr = rl.Temp.String$.Ref1(text);
    final secretViewActivePtr = rl.Temp.Bool$.RefOrNull1(secretViewActive);
    final result = rl.Gui.GuiTextInputBox(
      rl.Temp.Rectangle$.Ref1(bounds).ref,
      rl.Temp.String$.ValueOrNull(title),
      rl.Temp.String$.ValueOrNull(message),
      rl.Temp.String$.ValueOrNull(buttons),
      valuePtr,
      textMaxSize.toInt(),
      secretViewActivePtr,
    );
    return (result, valuePtr.toD);
  },
);