GuiTextInputBox method
Text Input Box control, ask for text, supports secret
Implementation
(GuiResult result, String value, int btnActive, bool? secretViewActive) GuiTextInputBox(
RectangleD bounds,
String? title,
String? message,
String? text,
num textSize,
String btnText,
[bool? secretViewActive]
) => run(
() => _debugLabels.GuiTextInputBox(bounds, title, message, text, textSize, btnText, secretViewActive),
() {
final textPtr = $.String$.Ref1(text, textSize.toInt());
final btnActivePtr = $.Int$.Ref1();
final secretViewActivePtr = $.Bool$.RefOrNull1(secretViewActive);
final result = _flat.GuiTextInputBox(
bounds,
$.String$.ValueOrNull(title),
$.String$.ValueOrNull(message),
textPtr,
textSize.toInt(),
$.String$.ValueOrNull(btnText),
btnActivePtr,
secretViewActivePtr,
);
return (
.fromValue(result),
textPtr.toDartString(),
btnActivePtr.value,
secretViewActive == null ? null : secretViewActivePtr.value,
);
},
);