Module rs::layout

source · []
Expand description

Layout-related data.

The View contains Rows and each Row contains Buttons. They carry data relevant to their positioning only, except the Button, which also carries some data about its appearance and function.

The layout is determined bottom-up, by measuring Button sizes, deriving Row sizes from them, and then centering them within the View.

That makes the View position immutable, and therefore different than the other positions.

Note that it might be a better idea to make View position depend on its contents, and let the renderer scale and center it within the widget.

Modules

Gathers stuff defined in C or called by C

procedures 🔒
seat 🔒

Top level procedures, dispatching to everything

Structs

The definition of an interactive button

Button position for the pressed buttons list

Associates the state of a layout with its definition. Contains everything necessary to present this layout to the user and to determine its reactions to inputs.

Static, cacheable information for the layout

A builder structure for picking up layout data from storage

Changeable state that can’t be derived from the definition of the layout.

NoSuchView 🔒

The representation of a row of buttons

Enums

The physical characteristic of layout for the purpose of styling

Presence 🔒

Statics

RELEASED 🔒

Functions