Skip to main content

Module navigation

Module navigation 

Source
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 room for 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 (see crate::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 y from its top.
scroll_list_within πŸ”’
Scroll the list of the view on show to y from its top, or as far as it goes, if that is less.
wing_of πŸ”’
Which part of a panel the applet applet is in, by the lists of what is at its two ends and in its middle. None if it is in none of them.