pub fn draw<L: ListViewer + ?Sized>(this: &mut L, ctx: &mut DrawCtx<'_>)Expand description
Render the range items in num_cols columns. Reused verbatim by concrete
list widgets; calls back into get_text /
is_selected.
Draws the two-axis color matrix — the row surface (the three-surface rule:
normal/surface/inactive, see
DrawCtx::content_surface) tracks
DrawCtx::owner_active (is the owning
pane focused?) crossed with this list’s own focus and selectability, while
the current-item highlight (focused/selected) tracks this list’s own
state.focused (is this list the focused control?) — the per-cell
item/column layout, the indent column-skip (the cached horizontal-bar
value), the <empty> placeholder, the │ divider, and the focused-cell
cursor.
Also caches abs_origin for the mouse-track capture.
NOTE: this: &mut L (not &L) — the abs_origin cache write requires
mutability. Do NOT revert to &L: the draw is logically const, but the
origin stored here feeds Context::start_mouse_track (the
Button::abs_origin pattern).