Skip to main content

draw_peer_presence

Function draw_peer_presence 

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

Paint already-resolved peer cursors in one coordinate space. On-screen peers get moving dots and collision-free name pills; off-screen peers become directional edge mist. This is the compositor-facing sibling of draw_remote_presence, which resolves cursors from a PresenceCtx.

Returns the bounds, in scene coordinates, of everything painted (see draw_peer_cursors).