GuiButton method

GuiResult GuiButton(
  1. RectangleD bounds,
  2. String? text
)

Button control, returns true when clicked

Implementation

GuiResult GuiButton(
  RectangleD bounds,
  String? text,
) => run(
  () => _debugLabels.GuiButton(bounds, text),
  () => .fromValue(_flat.GuiButton(
    bounds,
    $.String$.ValueOrNull(text),
  )),
);