Module floating_list
Expand description
FloatingList — the one floating option list: a Panel of rows that
scrolls, arms a row for the pointer and the keys, and places itself
beside its anchor.
Owners bring the rows and paint them (FloatingRow); the list owns the
geometry, the scrolling, the arming, the arrival placeholder and the
placement, so a suggestion list, a dropdown, a filter menu and a context
menu all behave the same.
Structs§
- Floating
List - A floating list of rows under (or, without room, above) an anchor: the
one menu list behind
crate::widget::Autocomplete, a code editor’s caret completion, the filter and slash menus, a dropdown’s open list and every context menu. - Floating
Metrics - The geometry of a floating list in one theme.
- RowState
- How a row is painted: where it stands, whether it is armed, and what its list’s rows share.
Traits§
- Floating
Row - What the list needs to know about a row it lays out; the owner paints it.