GuiDropdownBox method

(int, int) GuiDropdownBox(
  1. RectangleD bounds,
  2. String? text,
  3. num active,
  4. bool editMode,
)

Implementation

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