mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 02:32:33 +00:00
A painted pointer is drawn once as a list of marks around its hotspot (ghost/art.rs) and either painted on the ghost layer or rasterised with tiny-skia into the cursor image the window shows, where the window takes one at its size: the root viewport of a native build, not Wayland off scale 1, within 255 px on Linux and 2048 elsewhere. The image is in points on macOS. A brush tip too large for an image hands its centre cross and badge to the window and paints its ring. The cursor service clears egui's sticky image every pass and keeps the last image while the art and scale are unchanged, so the integration uploads it once. The brush cursor's own distance-field rasteriser goes.