GuiTextInputBox method
(int, String, bool?)
GuiTextInputBox(
- RectangleD bounds,
- String? title,
- String? message,
- String buttons,
- String? text,
- num textMaxSize,
- 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);
},
);