Expand description
The screen the popup opens on: how much of its height there is for the popup, and how many of its pixels a point is.
The popup may be as tall as its screen has room, and a picture is kept
at as many pixels as it takes on it (see crate::images). Neither
is told to a program: both are what the compositor does with a surface
of its own. So the window keeps one that it asks: the surface that is
there from the start and shows nothing (see
keep_what_is_copied)
is a point wide and reaches from the top of the screen to the bottom,
beside whatever keeps room for itself at an edge, as the panel does.
How tall the compositor made it is how much room there is, and the
scale it is drawn at is the screen’s.
It is asked when the window starts, and again whenever the popup opens, since a screen is something that gets plugged in and out, and set to another scale. Until it has answered, the popup keeps to a height that fits any screen, and pictures to a size that is sharp on any.
Heights are logical: a display 2160 pixels tall at 170% is 1270 points tall, and points are what a layout is in. Its scale is how many pixels that makes a point: 1.7.
Structs§
- Screen
- A screen, as far as the window has to know it.
Constants§
- LAID_
OUT 🔒 - How tall a surface is, at the least, that the compositor has laid out from the top of a screen to the bottom: one that is less was not laid out yet, and says nothing of its screen.
Functions§
- measured
- What a surface that reaches from the top of its screen to the bottom
says of it: one that is
heightpoints tall, and drawn atscale.Noneif it was not laid out yet, or says nonsense.