0.69.2: a renderer says where it drew its rows
`600c9e42` asked what, if anything, a description should hand a host about where
it drew what. Nothing, and it is the same rule as the rest of the day's:
`Act::shows` carries a picture and not a box, and `ae8e8836`'s three candidate
anchors all name a described thing rather than a pixel. A description says what
is on the screen and never where.
Geometry is the renderer's answer and a different answer per host -- a terminal
has cells, a webview has the DOM, egui has rects -- so the fact travels from the
renderer to its own host beside the drawing rather than through the description.
A webview host asks the DOM the same question and needs nothing from here. That
constraint is shared with `ae8e8836` and does not pre-empt its choice between
(a), (b) and (c), all three of which are compatible with it.
`quasi_immediate::row_at(ctx, pos) -> Option<RowAt>`, carrying the row's value
(`None` where the description gave none) and its index. Every described row is
noted whether or not it answers a gesture: "is the pointer over a row" has to be
answerable for the row that answers nothing, which is the dangerous case.
Through egui's own context data rather than a return value. `Immediate::screen`
and `chromed` answer `Option<Fired>`, which is what the user set off; widening
that would make every call site in every host thread a fact almost none of them
want. Per-frame data belonging to a context is what context data is for.
Rects are keyed by the pass they were measured in and cleared when it moves,
since this crate has no begin-frame hook. A table cell is noted after it has
drawn, because a `Ui`'s `min_rect` is empty until something is in it and
measuring first recorded a sliver at the cell's left edge -- caught by the test
rather than reasoned about.
`table_columns` split out of `table` while it was over clippy's line bound. It
was already a self-contained fact about the two vocabularies meeting: a tick
takes no column in the description and this renderer adds one.
- Co-Authored-By
- Claude Opus 5 (1M context) <noreply@anthropic.com>
16 files changed,
+340 insertions,
-106 deletions
| 6211 |
6211 |
|
"winnow 1.0.4",
|
| 6212 |
6212 |
|
]
|
| 6213 |
6213 |
|
|
|
6214 |
+ |
[[patch.unused]]
|
|
6215 |
+ |
name = "quasi-type"
|
|
6216 |
+ |
version = "0.1.0"
|
|
6217 |
+ |
|
| 6214 |
6218 |
|
[[patch.unused]]
|
| 6215 |
6219 |
|
name = "kberg"
|
| 6216 |
6220 |
|
version = "0.1.0"
|
| 6230 |
6234 |
|
[[patch.unused]]
|
| 6231 |
6235 |
|
name = "synckit-client"
|
| 6232 |
6236 |
|
version = "0.9.1"
|
| 6233 |
|
- |
|
| 6234 |
|
- |
[[patch.unused]]
|
| 6235 |
|
- |
name = "quasi-type"
|
| 6236 |
|
- |
version = "0.1.0"
|
| 1 |
1 |
|
[package]
|
| 2 |
2 |
|
name = "quasi-axum"
|
| 3 |
|
- |
version = "0.69.1"
|
|
3 |
+ |
version = "0.69.2"
|
| 4 |
4 |
|
description = "The axum host adapter for quasi-router: an HTTP request in, a rendered description out"
|
| 5 |
5 |
|
edition.workspace = true
|
| 6 |
6 |
|
rust-version.workspace = true
|
| 13 |
13 |
|
workspace = true
|
| 14 |
14 |
|
|
| 15 |
15 |
|
[dependencies]
|
| 16 |
|
- |
quasi-router = { path = "../quasi-router", version = "0.69.1" }
|
| 17 |
|
- |
quasi-http = { path = "../quasi-http", version = "0.69.1" }
|
|
16 |
+ |
quasi-router = { path = "../quasi-router", version = "0.69.2" }
|
|
17 |
+ |
quasi-http = { path = "../quasi-http", version = "0.69.2" }
|
| 18 |
18 |
|
axum = "0.8.8"
|
| 19 |
19 |
|
http = "1.3.1"
|
| 20 |
20 |
|
tokio = { version = "1.50.0", features = ["rt"] }
|
| 21 |
21 |
|
|
| 22 |
22 |
|
[dev-dependencies]
|
| 23 |
|
- |
quasi-webview = { path = "../quasi-webview", version = "0.69.1" }
|
|
23 |
+ |
quasi-webview = { path = "../quasi-webview", version = "0.69.2" }
|
| 24 |
24 |
|
tokio = { version = "1.50.0", features = ["macros", "rt-multi-thread"] }
|
| 25 |
25 |
|
tower = { version = "0.5.3", features = ["util"] }
|
| 26 |
26 |
|
http-body-util = "0.1.3"
|
| 1 |
1 |
|
[package]
|
| 2 |
2 |
|
name = "quasi-basics"
|
| 3 |
|
- |
version = "0.69.1"
|
|
3 |
+ |
version = "0.69.2"
|
| 4 |
4 |
|
description = "The first-party widget set: named assemblies of primitives, shared across our apps"
|
| 5 |
5 |
|
edition.workspace = true
|
| 6 |
6 |
|
rust-version.workspace = true
|
| 13 |
13 |
|
workspace = true
|
| 14 |
14 |
|
|
| 15 |
15 |
|
[dependencies]
|
| 16 |
|
- |
quasi-router = { path = "../quasi-router", version = "0.69.1" }
|
|
16 |
+ |
quasi-router = { path = "../quasi-router", version = "0.69.2" }
|
| 17 |
17 |
|
makeover-layout = "0.35.0"
|
| 18 |
18 |
|
|
| 19 |
19 |
|
[dev-dependencies]
|
| 20 |
20 |
|
# A widget's guarantees are claims about what a renderer draws, so they are
|
| 21 |
21 |
|
# tested against a real one rather than by walking the tree the assembly just
|
| 22 |
22 |
|
# built. The webview is the renderer that recognises names today.
|
| 23 |
|
- |
quasi-webview = { path = "../quasi-webview", version = "0.69.1" }
|
| 24 |
|
- |
quasi-http = { path = "../quasi-http", version = "0.69.1" }
|
|
23 |
+ |
quasi-webview = { path = "../quasi-webview", version = "0.69.2" }
|
|
24 |
+ |
quasi-http = { path = "../quasi-http", version = "0.69.2" }
|
| 1 |
1 |
|
[package]
|
| 2 |
2 |
|
name = "quasi-bench"
|
| 3 |
|
- |
version = "0.69.1"
|
|
3 |
+ |
version = "0.69.2"
|
| 4 |
4 |
|
description = "What a described screen costs to render, in time and in allocations"
|
| 5 |
5 |
|
edition.workspace = true
|
| 6 |
6 |
|
rust-version.workspace = true
|
| 22 |
22 |
|
count = ["dep:dhat"]
|
| 23 |
23 |
|
|
| 24 |
24 |
|
[dependencies]
|
| 25 |
|
- |
quasi-router = { path = "../quasi-router", version = "0.69.1" }
|
| 26 |
|
- |
quasi-webview = { path = "../quasi-webview", version = "0.69.1" }
|
| 27 |
|
- |
quasi-tui = { path = "../quasi-tui", version = "0.69.1" }
|
|
25 |
+ |
quasi-router = { path = "../quasi-router", version = "0.69.2" }
|
|
26 |
+ |
quasi-webview = { path = "../quasi-webview", version = "0.69.2" }
|
|
27 |
+ |
quasi-tui = { path = "../quasi-tui", version = "0.69.2" }
|
| 28 |
28 |
|
# `Serves` is the trait carrying `screen` and `fragment`, which is what the
|
| 29 |
29 |
|
# webview is measured through. Taken directly rather than through quasi-webview
|
| 30 |
30 |
|
# because a bench calling a trait method should name the trait it calls.
|
| 31 |
|
- |
quasi-http = { path = "../quasi-http", version = "0.69.1" }
|
|
31 |
+ |
quasi-http = { path = "../quasi-http", version = "0.69.2" }
|
| 32 |
32 |
|
makeover-layout = "0.35.0"
|
| 33 |
33 |
|
makeover-tui = { version = "0.35.0", features = ["theme"] }
|
| 34 |
34 |
|
# Only to load a bundled theme file. `makeover_tui::Theme` is `#[non_exhaustive]`,
|
| 1 |
1 |
|
[package]
|
| 2 |
2 |
|
name = "quasi-http"
|
| 3 |
|
- |
version = "0.69.1"
|
|
3 |
+ |
version = "0.69.2"
|
| 4 |
4 |
|
description = "The http-shaped seam quasi's webview host adapters share: decoding in, a rendered description out"
|
| 5 |
5 |
|
edition.workspace = true
|
| 6 |
6 |
|
rust-version.workspace = true
|
| 13 |
13 |
|
workspace = true
|
| 14 |
14 |
|
|
| 15 |
15 |
|
[dependencies]
|
| 16 |
|
- |
quasi-router = { path = "../quasi-router", version = "0.69.1" }
|
|
16 |
+ |
quasi-router = { path = "../quasi-router", version = "0.69.2" }
|
| 17 |
17 |
|
http = "1.3.1"
|
| 18 |
18 |
|
form_urlencoded = "1.2.2"
|
| 1 |
1 |
|
[package]
|
| 2 |
2 |
|
name = "quasi-immediate"
|
| 3 |
|
- |
version = "0.69.1"
|
|
3 |
+ |
version = "0.69.2"
|
| 4 |
4 |
|
edition = "2024"
|
| 5 |
5 |
|
description = "The immediate-mode renderer for quasi-router: a described screen in, an egui frame out. Immediate mode is the constraint that matters, not the library."
|
| 6 |
6 |
|
license = "MIT"
|
| 12 |
12 |
|
categories = ["gui"]
|
| 13 |
13 |
|
|
| 14 |
14 |
|
[dependencies]
|
| 15 |
|
- |
quasi-router = { path = "../quasi-router", version = "0.69.1" }
|
|
15 |
+ |
quasi-router = { path = "../quasi-router", version = "0.69.2" }
|
| 16 |
16 |
|
# The node drawing, which is the makeover layer's and not this crate's. Every
|
| 17 |
17 |
|
# widget here that is not a container comes from it: a screen walk that painted
|
| 18 |
18 |
|
# its own meter would be the divergence the suite exists to end, one copy per
|
| 1 |
1 |
|
[package]
|
| 2 |
2 |
|
name = "quasi-notifs"
|
| 3 |
|
- |
version = "0.69.1"
|
|
3 |
+ |
version = "0.69.2"
|
| 4 |
4 |
|
description = "Declared notification kinds and the registry that holds them: what a notification says and what it is for, apart from how it reaches a person"
|
| 5 |
5 |
|
edition.workspace = true
|
| 6 |
6 |
|
rust-version.workspace = true
|
| 24 |
24 |
|
describe = ["dep:quasi-router"]
|
| 25 |
25 |
|
|
| 26 |
26 |
|
[dependencies]
|
| 27 |
|
- |
quasi-router = { path = "../quasi-router", version = "0.69.1", optional = true }
|
|
27 |
+ |
quasi-router = { path = "../quasi-router", version = "0.69.2", optional = true }
|
| 28 |
28 |
|
synckit-config = { git = "https://makenot.work/git/max/synckit.git", version = "0.2", optional = true }
|