diff options
| author | user <user@clank> | 2026-08-30 15:22:51 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-30 15:22:51 +0200 |
| commit | ea83e7ee521d1430f6b0c3b619b390337924a066 (patch) | |
| tree | e6f9be87926a83f65a46bc9fa70303af7e0c8e96 /src/expr.c | |
| parent | web: a seventh cast -- floats, and the cheatsheet (diff) | |
| download | slosh-ea83e7ee521d1430f6b0c3b619b390337924a066.tar.gz slosh-ea83e7ee521d1430f6b0c3b619b390337924a066.tar.xz slosh-ea83e7ee521d1430f6b0c3b619b390337924a066.zip | |
layout: a float sized but not positioned is centred, per axis
docs/layouts.md always said an absent coordinate takes the centred
default; the loader said 0, and a layout float with only w= h= landed
in the top-left corner. Now an axis the file does not name is
FLOAT_CENTRE, a sentinel no real coordinate can reach, and float_clamp
answers it with the middle -- every frame, at whatever size the
terminal is by then, until an explicit move or resize writes a real
number over it. The webdemo's welcome float is the customer: it must
sit centred on a terminal whose size the layout file cannot know.
The dump writes a still-centred axis by omission, because the number
it happened to land on would pin to this screen's size the one intent
that deliberately has none. Every mutating verb already writes back
from the drawn rect, so the sentinel survives nothing it should not.
Diffstat (limited to 'src/expr.c')
0 files changed, 0 insertions, 0 deletions
