GuiLabelButton method

  1. @override
int GuiLabelButton(
  1. RectangleD bounds,
  2. String? text
)
override

Label button control, returns true when clicked

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

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

Implementation

@override
int GuiLabelButton(
  RectangleD bounds,
  String? text,
) => run(
  () => RaylibDebugLabels.GuiLabelButton(bounds, text),
  () => rl.Gui.GuiLabelButton.run2(
    rl.Temp.Rectangle$.Ref1(bounds).toJS,
    text?.toJS,
  ).toInt(),
);