GuiTextBox method

(GuiResult, String) GuiTextBox(
  1. RectangleD bounds,
  2. String? text,
  3. num textSize,
  4. bool editMode,
)

Text Box control, updates input text

Implementation

(GuiResult result, String value) GuiTextBox(
  RectangleD bounds,
  String? text,
  num textSize,
  bool editMode,
) => run(
  () => _debugLabels.GuiTextBox(bounds, text, textSize, editMode),
  () {
    final valuePtr = $.String$.Ref1(text ?? '', textSize.toInt());
    final result = _flat.GuiTextBox(
      bounds,
      valuePtr,
      textSize.toInt(),
      editMode,
    );
    return (.fromValue(result), valuePtr.toDartString());
  },
);