From 9f99a64cf733bfa38a7887d74b25d27d0d4cdbb1 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 05:07:04 +0700 Subject: [PATCH] docs: regenerate contract-api --- docs/contract-api.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/contract-api.md b/docs/contract-api.md index f798d5808d..5f87400337 100644 --- a/docs/contract-api.md +++ b/docs/contract-api.md @@ -1469,8 +1469,9 @@ Pointer values and the press lifecycle (8.1, 8.2), egui-free: the runtime conver - `craft_behavior::press::Buttons`: `pub struct Buttons: u8 (flag set)`. The pointer buttons held. - `pub const fn of(button: PointerButton) -> Buttons`. The flag of one button. - `craft_behavior::press::MULTI_CLICK_TIME`: `pub const MULTI_CLICK_TIME: f64`. The longest gap between presses that still count as one multi-click, in seconds. +- `craft_behavior::press::MULTI_TAP_SLOP`: `pub const MULTI_TAP_SLOP: f32`. How far a finger of a multi-finger tap may move from where it landed, in points: fingers drift more than a - `craft_behavior::press::MULTI_TAP_TIME`: `pub const MULTI_TAP_TIME: f64`. The longest the fingers of a multi-finger tap may stay down, in seconds. -- `craft_behavior::press::MultiTap`: `pub struct MultiTap { pub fingers: u8, pub at: Pos2 }`. Two or more fingers came down and all lifted within the tap time without moving past the slop. +- `craft_behavior::press::MultiTap`: `pub struct MultiTap { pub fingers: u8, pub at: Pos2 }`. Two or more fingers came down and all lifted within [`MULTI_TAP_TIME`] without moving past [`MULTI_TAP_SLOP`]. - `pub const fn new(fingers: u8, at: Pos2) -> Self`. A tap of `fingers` around `at`. - `craft_behavior::press::MultiTouch`: `pub struct MultiTouch { pub translation: Vec2, pub zoom: f32, pub rotation: f32, pub center: Pos2 }`. A two-finger gesture. - `pub const fn new(translation: Vec2, zoom: f32, rotation: f32, center: Pos2) -> Self`. A gesture around `center`. @@ -2071,7 +2072,7 @@ The component traits, context types, `PaintUi`, `Looks`, the pipeline and its st - `pub const fn new(key: ColumnKey, descending: bool) -> Self`. Rows sorted by `key`, descending when `descending`. - `pub const fn ascending(key: ColumnKey) -> Self`. Rows sorted by `key`, ascending. - `pub const fn descending(key: ColumnKey) -> Self`. Rows sorted by `key`, descending. -- `craft_ui::contract::ColumnSpec`: `pub struct ColumnSpec { pub key: ColumnKey, pub header: Label, pub width: ColumnWidth, pub resizable: bool, pub sortable: bool, pub movable: bool, pub frozen: bool, pub kind: ColumnKind, pub align: ColumnAlign, pub tabular: bool, pub first_descending: bool, pub icon: Option, pub tip: Option