#[non_exhaustive]pub enum Room {
Tight,
Ample,
}Expand description
How much room a group has, measured against its own allocation.
Never authored. A renderer computes it from what the group was given and
what the group’s own contents ask for, in that renderer’s units: a webview
from min-content under a container query, a terminal from cell widths,
egui from the galley. Nothing in the description says a number, which is the
point – an authored breakpoint rots and this cannot.
§Why not Depth-style two members and no more
Two is what the measurement supports. The goingson case that produced this
type is a window 913px wide – makeover-geometry’s SizeClass::Expanded –
holding a group that has run out of room. A third tier would be a guess
about a shape nothing in the tree has yet.
§Why it is not SizeClass
Because 913 is exactly the case that proves they are different facts. The
window is roomy and the group is not, so a type that answered for both would
have to be wrong about one of them. Sharing the name would also invite
@media thinking straight back in, which is what put a position: absolute
in goingson’s stylesheet in the first place. Container semantics instead: a
group narrowed by a sidebar behaves the same as one narrowed by the window,
and there is one code path rather than two.
Ordered least room first, Priority’s convention, so a group nesting
another takes the minimum of the two and relief still resolves inside-out.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Tight
Not everything the group contains fits, and the group’s Fallback
decides what happens.
Ample
Everything fits as described.