GuiComboBox method

  1. @override
(int, int) GuiComboBox(
  1. RectangleD bounds,
  2. String? text,
  3. num active
)
override

Implementation

@override
(int result, int active) GuiComboBox(
  RectangleD bounds,
  String? text,
  num active,
) => run(
  () => RaylibDebugLabels.GuiComboBox(bounds, text, active),
  () {
    final valuePtr = rl.Temp.Int32$.Ref1(active.toInt());
    final result = rl.Gui.GuiComboBox.run3(
      rl.Temp.Rectangle$.Ref1(bounds).toJS,
      text?.toJS,
      valuePtr.toJS,
    ).toInt();
    return (result, valuePtr.value);
  },
);