Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-ui

Source of release 0.19.4

0.19.4 / src / cursor.lucb

## The cursor policy a widget can attach to its Layout to choose the pointer
## shape by position.
from luce_window import input
from geometry import Point

## Optional hit-dependent cursor policy. Coordinates are local to the widget;
## capture keeps a resize/drag cursor active when the pointer crosses its bounds.
## Queries must not change layout, dispatch events or draw.
pub interface CursorSource:
    func cursor(position: Point, captured: bool) -> input.Cursor