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

Enums

Statics

Functions