GuiCheckBox method

(GuiResult, bool) GuiCheckBox(
  1. RectangleD bounds,
  2. String? text,
  3. bool checked
)

Check Box control, returns true when active

Implementation

(GuiResult result, bool checked) GuiCheckBox(
  RectangleD bounds,
  String? text,
  bool checked,
) => run(
  () => _debugLabels.GuiCheckBox(bounds, text, checked),
  () {
    final valuePtr = $.Bool$.Ref1(checked);
    final result = _flat.GuiCheckBox(
      bounds,
      $.String$.ValueOrNull(text),
      valuePtr,
    );
    return (.fromValue(result), valuePtr.value);
  },
);