GuiButton abstract method

int GuiButton(
  1. RectangleStructType bounds,
  2. String? text
)

Button control, returns true when clicked

Returns int rather than bool to match Raygui's uniform result convention across all controls.

Use GuiButton(...) == 1 to test for a click.

Implementation

int GuiButton(
  RectangleStructType bounds,
  String? text,
);