GuiTextInputBox method

(GuiResult, String, int, bool?) GuiTextInputBox(
  1. Rectangle bounds,
  2. String? title,
  3. String? message,
  4. String? text,
  5. num textSize,
  6. String btnText, [
  7. bool? secretViewActive,
])

Text Input Box control, ask for text, supports secret

Implementation

(GuiResult result, String value, int btnActive, bool? secretViewActive) GuiTextInputBox(
  Rectangle 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,
    );
  },
);