Skip to main content

draw_peer_cursors

Function draw_peer_cursors 

pub fn draw_peer_cursors(
    scene: &mut Scene,
    transform: Affine,
    viewport: Rect,
    text_renderer: &mut TextRenderer,
    theme: &Theme,
    peers: &[PeerCursor],
) -> Vec<Rect>
Expand description

Paint pointers, then tethers, then pills — in that layer order so a later peer’s halo can’t wash over an earlier peer’s name. viewport bounds the pills; positions are assumed already filtered to it.

Returns the bounds, in scene coordinates, of everything painted: each pointer’s halo, each tether and each pill with its shadow.