Expand description
Navigation message handlers for Avestruz.
This module handles the popupβs lifecycle, how tall it may be, and which view it shows.
The popup may be as tall as the screen it opens on has room: all of
it, but what the panel keeps for itself and a gap at either end. A
view with a long list in it is that tall, and one with little to show
is as tall as what it shows. How much room there is is asked when the
window starts and again each time the popup opens (see
crate::screen): the popup opens at once with the last answer, and
takes the new one when it comes, if it differs.
Under everything is the feed. Threads and profiles open over it as pages, one from another, and stack up; Back closes the last. Each keeps what it shows and its place, so going back is to where one was. The composer, the zap view and the settings show in place of whatever list was on show, and leave it as it was.
EnumsΒ§
- Wing π
- Which part of the panel an applet sits in.
ConstantsΒ§
- KEEPER_
NAMESPACE π - What the compositor knows the surface that keeps what is copied by.
- LAID_
OUT_ πWITHIN - How long the surface that says what the screen is like is given to be laid out, when the window starts, before it is asked.
- MAX_
OPEN_ πPAGES - How many pages can be open one over another. Opening one more closes the first: each holds a list of notes, and the applet runs for as long as the session does.
- POPUP_
GAP π - The room between the popup and the edges of the screen, and the panel.
- POPUP_
NAMESPACE π - The name the compositor knows the popupβs surface by.
- SAME_
PRESS π - How long after the popup closed for a click outside it a press of the panel button is taken to be that click: the button is outside it.
FunctionsΒ§
- max_
height_ πon - How tall the popup may be on a screen that has
roomfor it, if that is known: all of it but the gap at either end, in whole points, and what fits any screen if it isnβt. - measure π
- Ask the surface
keeper, which reaches from the top of its screen to the bottom, what the screen is like: how tall the compositor made it, and the scale it is drawn at (seecrate::screen). - panel_
wing π - Which part of its panel the button is in, as the panelβs settings have it: the end, where no panel says (run by hand, there is none).
- popup_
anchor π - Where on its screen the popup is put: against the edge the panel is on, and along that edge at the end the button is in, or in the middle if the button is. Under the button, as near as can be told: the window is told which panel and which part of it, not where in it.
- scroll_
list_ πto - Scroll the list of the view on show to
yfrom its top. - scroll_
list_ πwithin - Scroll the list of the view on show to
yfrom its top, or as far as it goes, if that is less. - wing_of π
- Which part of a panel the applet
appletis in, by the lists of what is at its two ends and in its middle.Noneif it is in none of them.