GuiToggle method

(int, bool) GuiToggle(
  1. RectangleD bounds,
  2. String? text,
  3. bool active
)

Implementation

(int result, bool active) GuiToggle(
  RectangleD bounds,
  String? text,
  bool active,
) => run(
  () => 'GuiToggle($bounds, $text, $active)',
  () {
    final valuePtr = refBool1(active);
    final result = rl.Gui.GuiToggle(
      _refRectangle1(bounds).ref,
      refStr(text),
      valuePtr,
    );
    return (result, valuePtr.value);
  },
);