Skip to main content

Module constants

Module constants 

Source
Expand description

Sizes shared between views, and the scroller they share.

Constants§

LIST_MAX_WIDTH
LIST_PADDING_LEFT
The room beside a view’s list, inside its scroller: at the left, and at the right, where the scrollbar is drawn over what is scrolled. And how wide that leaves the list in a popup at its widest: what a picture that fills its row is as wide as.
LIST_PADDING_RIGHT
POPUP_MAX_HEIGHT_UNMEASURED
How tall the popup may be while the height of its screen is not known: what fits any screen. And the least it may ever be told it may be, however short the screen: the least the compositor is asked for.
POPUP_MAX_WIDTH
POPUP_MIN_HEIGHT
POPUP_MIN_WIDTH
How wide the popup is, at the least and at the most. Said twice, to the compositor that places the popup and to the wrapper that sizes it to its content, which would otherwise pin it to libcosmic’s 360.

Statics§

LIST_SCROLL_ID
The scrollable holding the list of the view on show: a feed’s, a thread’s.