GuiTextInputBox method

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

Implementation

@override
(int result, String value, bool? secretViewActive) GuiTextInputBox(
  RectangleD bounds,
  String? title,
  String? message,
  String buttons,
  String? text,
  num textMaxSize,
  bool? secretViewActive,
) => run(
  () => RaylibDebugLabels.GuiTextInputBox(bounds, title, message, buttons, text, textMaxSize, secretViewActive),
  () {
    final valuePtr = rl.Temp.String$.Ref1(text, textMaxSize.toInt());
    final secretViewActivePtr = rl.Temp.Bool$.RefOrNull1(secretViewActive);
    final result = rl.Gui.GuiTextInputBox.run7(
      rl.Temp.Rectangle$.Ref1(bounds).toJS,
      title?.toJS,
      message?.toJS,
      buttons.toJS,
      valuePtr.toJS,
      textMaxSize.toJS,
      secretViewActivePtr.toJS,
    ).toInt();
    return (result, valuePtr.value, secretViewActive == null ? null : secretViewActivePtr.value);
  },
);