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 = refString1(text);
    final secretViewActivePtr = refBool1OrNull(secretViewActive);
    final result = rl.Gui.GuiTextInputBox(
      _refRectangle1(bounds).ref,
      refStr(title),
      refStr(message),
      refStr(buttons),
      valuePtr,
      textMaxSize.toInt(),
      secretViewActivePtr,
    );
    return (result, valuePtr.toD);
  },
);