GuiDropdownBox method

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

Dropdown Box control

Implementation

(GuiResult result, int active) GuiDropdownBox(
  RectangleD bounds,
  String? text,
  num active,
  bool editMode,
) => run(
  () => _debugLabels.GuiDropdownBox(bounds, text, active, editMode),
  () {
    final valuePtr = $.Int$.Ref1(active.toInt());
    final result = _flat.GuiDropdownBox(
      bounds,
      $.String$.ValueOrNull(text),
      valuePtr,
      editMode,
    );
    return (.fromValue(result), valuePtr.value);
  },
);