BeginCombobox#
func BeginCombobox(canvas *ui.Canvas, theme ui.Theme, inputBounds ui.Rect, options ComboboxOptions) ComboboxBeginCombobox paints the input group and optional popup surface.
type Combobox struct {
// contains filtered or unexported fields
}Combobox paints an editable trigger and its optional popup snapshot.
BeginCombobox#func BeginCombobox(canvas *ui.Canvas, theme ui.Theme, inputBounds ui.Rect, options ComboboxOptions) ComboboxBeginCombobox paints the input group and optional popup surface.
AddEmpty#func (combobox *Combobox) AddEmpty(label string) ui.RectAddEmpty paints the centered empty-result state.
AddItem#func (combobox *Combobox) AddItem(item ComboboxItem) ui.RectAddItem paints one option and its selected indicator.
AddLabel#func (combobox *Combobox) AddLabel(label string) ui.RectAddLabel paints one compact group label.
AddSeparator#func (combobox *Combobox) AddSeparator() ui.RectAddSeparator paints the official one-pixel divider.
ContentBounds#func (combobox Combobox) ContentBounds() ui.RectContentBounds returns the normalized open popup geometry.
End#func (combobox Combobox) End()End ends the popup's entrance and exit: call it once the last item is painted, or the popup appears and disappears at once. A closed combobox needs no End, and is not harmed by one.
InputBounds#func (combobox Combobox) InputBounds() ui.RectInputBounds returns the normalized input geometry.
Match#func (combobox Combobox) Match(prefix string, from ui.ID) (ui.ID, bool)Match is MenuScroll.Match for the open options.
Navigate#func (combobox Combobox) Navigate(key ui.Key, from ui.ID, loop bool) (ui.ID, bool)Navigate moves the keyboard through the open options and scrolls the one it reaches into view; see MenuScroll.Navigate.
NextItemBounds#func (combobox Combobox) NextItemBounds() ui.RectNextItemBounds returns the next option row without mutating state.
PaintChip#func (combobox Combobox) PaintChip(bounds ui.Rect, chip ComboboxChip) ui.RectPaintChip paints one source-owned multi-selection token. The caller provides both geometry and a stable remove action ID; PaintChips lays chips out and paints them in a container instead.