GuiTextInputBox method
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);
},
);