diff --git a/docs/contract-api.md b/docs/contract-api.md index ef6797c0d7..3b07730b90 100644 --- a/docs/contract-api.md +++ b/docs/contract-api.md @@ -4078,7 +4078,7 @@ One-shot screenshot slots and the facts a screenshot is measured against. - `pub fn mode(mut self, mode: Mode) -> Self`. Resolves in `mode`: a plot that is dark in every theme, a preview of the other mode. - `pub fn contrast(mut self, contrast: Contrast) -> Self`. Resolves under `contrast`. - `pub fn density(mut self, density: Size) -> Self`. Resolves at the density preset `density`. -- `craft_ui::runtime::env::UnitKind`: `pub enum UnitKind { Pixels, Percent, Degrees, Points, Times, Inches, Centimetres, Millimetres, Picas, PixelsPerInch, PixelsPerCentimetre, Minutes, Columns, LinesPerInch, LinesPerCentimetre, Feet, Yards, Metres, Q, Ha, Letters, Hyphens, Milliseconds }`. What a number counts. +- `craft_ui::runtime::env::UnitKind`: `pub enum UnitKind { Pixels, Percent, Degrees, Points, Times, Inches, Centimetres, Millimetres, Picas, PixelsPerInch, PixelsPerCentimetre, Minutes, Columns, LinesPerInch, LinesPerCentimetre, Feet, Yards, Metres, Q, Ha, Letters, Hyphens, PerInch, Milliseconds }`. What a number counts. - `pub const LENGTHS: [UnitKind; 5]`. The lengths a unit choice offers. [`per_inch`](Self::per_inch) answers for more kinds (feet, yards, metres, Q, - `pub const fn decimals(self) -> RangeInclusive`. The digits after the decimal mark a number of this kind shows by default, at most. - `pub const fn step(self) -> f64`. What one arrow press, wheel notch or scrub point changes a number of this kind by, where the control that shows