The Standard UI Layout family — from lib/user-interface
lib/user-interface gives you two complementary layout surfaces:
- The native flow manager —
SLLayout+SLMeasure(here), backed byuser-interface/slui_layout.cpp: named groups/items, flow solutions (stack/wrap/grid/dock/central), standardized units (US/metric/px/fr/em), named ergonomic presets, and n-ary adjustment. The expert, native-backed engine. See../../user-interface/LAYOUT.md.
- The standard layout family —
SLStackLayout,SLGridLayout,SLDockLayout,SLAbsoluteLayout, theSLLayoutKitfacade, andSLLayoutBox. These are the professional, beginner-first classes for everyday placement: pure SLeeLa, they compute real device-pixel rectangles and always check + run. They are defined once inlib/ui(class names are global in/lib, so they are not duplicated) and are usable directly from here — justnew SLStackLayout()/new SLLayoutKit().Full reference:
../ui/LAYOUT.md.
Which do I use?
- Just placing a few things? Use the standard family (
SLLayoutKit.column,.row,.grid,.dock). Easiest, works everywhere, no native bridge needed. - Need named groups, ergonomic presets, physical units, or
frsolving by the native engine? UseSLLayout+SLMeasurehere.
Both resolve to device pixels and can be used in the same program.