Skip to main content

intent_from_gesture

Function intent_from_gesture 

Source
pub fn intent_from_gesture(
    operator: Origin,
    pane: &str,
    raw: &RawGesture,
) -> Result<Expr, IntentError>
Expand description

Turn a recognized raw gesture into an Intent value in pane, attributed to operator at tick. Returns a diagnostic when the gesture is meaningless in context; nothing mutates on failure.