GuiComboBox method

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

Implementation

(int result, int active) GuiComboBox(
  RectangleD bounds,
  String? text,
  num active,
) => run(
  () => 'GuiComboBox($bounds, $text, $active)',
  () {
    final valuePtr = rl.Temp.Int$.Ref1(active.toInt());
    final result = rl.Gui.GuiComboBox(
      rl.Temp.Rectangle$.Ref1(bounds).ref,
      rl.Temp.String$.ValueOrNull(text),
      valuePtr,
    );
    return (result, valuePtr.value);
  },
);