Skip to main content

paint_ghost

Function paint_ghost 

Source
pub fn paint_ghost(
    painter: &Painter,
    at: Pos2,
    ghost: &Ghost,
    verdict: Option<Verdict>,
) -> Rect
Expand description

Paints a drag’s ghost beside the pointer at at, from the kit (its drag-ghost, drag-ghost-count and drag-verdict components), with verdict’s symbol on its corner; the rectangle it took. The session calls it each pass of the window the pointer is in; a page showing ghosts (a gallery) may call it too.

Experimental: may change in any release (docs/stability.md).