GuiGrid method

int GuiGrid(
  1. RectangleD bounds,
  2. num spacing,
  3. num subdivs, [
  4. Vector2D? mouseCell,
])

Implementation

int GuiGrid(
  RectangleD bounds,
  num spacing,
  num subdivs,
  [Vector2D? mouseCell]
) => run(
  () => 'GuiGrid($bounds, $spacing, $subdivs, $mouseCell)',
  () => rl.Temp.Vector2$.RefUpdate1(mouseCell,
    (pv) => rl.Gui.GuiGrid(
      rl.Temp.Rectangle$.Ref1(bounds).ref,
      nullptr, // `text`, it's not used at all
      spacing.toDouble(),
      subdivs.toInt(),
      pv,
    ),
  ),
);