GuiComboBox method

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

Combo Box control

Implementation

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