From a7ff91cd1606c651ba37bf361e5efa3bb02a09e4 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 06:12:13 +0700 Subject: [PATCH] docs: regenerate contract-api for PointerFrame::pick_pos --- docs/contract-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contract-api.md b/docs/contract-api.md index 5f87400337..ad31943bb5 100644 --- a/docs/contract-api.md +++ b/docs/contract-api.md @@ -4278,7 +4278,7 @@ Background results (14): one result per key in runtime memory, produced by a job The pointer snapshot, press targets, the shape record and press cancels (8.1, 8.3). -- `craft_ui::runtime::pointer::PointerFrame`: `pub struct PointerFrame { pub pos: Option, pub delta: Vec2, pub buttons: Buttons, pub press: Option, pub release: Option, pub mods: Mods, pub pick_mods: Mods, pub multi_tap: Option, pub time: f64, pub kind: PointerKind, pub sample: Option, pub multi_touch: Option, pub scroll: Vec2, pub zoom: f32, pub rotation: f32, pub slop: f32, pub target: f32 }`. The pointer input of one pass of one viewport, egui-converted. Input enters a frame's first pass only (egui hands +- `craft_ui::runtime::pointer::PointerFrame`: `pub struct PointerFrame { pub pos: Option, pub delta: Vec2, pub buttons: Buttons, pub press: Option, pub release: Option, pub mods: Mods, pub pick_mods: Mods, pub pick_pos: Option, pub multi_tap: Option, pub time: f64, pub kind: PointerKind, pub sample: Option, pub multi_touch: Option, pub scroll: Vec2, pub zoom: f32, pub rotation: f32, pub slop: f32, pub target: f32 }`. The pointer input of one pass of one viewport, egui-converted. Input enters a frame's first pass only (egui hands - `craft_ui::runtime::pointer::frame`: `pub fn frame(ctx: &Context) -> PointerFrame`. The running pass's pointer input. A tracked input (`runtime::inputs`): a memoized view that reads it runs when the - `craft_ui::runtime::pointer::hovers`: `pub fn hovers(ctx: &Context, id: Id) -> bool`. Whether a shape the component `id` registered shows hover in the running pass, by the pass's one resolution of - `craft_ui::runtime::pointer::mods`: `pub fn mods(ctx: &Context) -> Mods`. The modifiers held in the running pass, with the latched ones (`PointerFrame::mods`). A tracked input: a memoized