|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
A container widget's child array + stack-layout parameters (#145). More...
#include <ra8_widget.h>
A container widget's child array + stack-layout parameters (#145).
The flat container ops above (ra8_widget_layout_stack et al.) lay out one array of widgets inside a frame. A panel lifts that into a tree: a panel is itself a ra8_widget_t (bind it with ra8_widget_panel_init), so a panel can be a child of another panel – the dwm-style composition the issue asks for, where the screen is a tree of opt-in pieces. Rendering a panel lays its children out inside the panel's own rect and composites them; routing offers an input event to those children. Everything is caller-owned (the child array and the ra8_box scratch), so a panel allocates nothing (NASA Rule 3) and the same tree runs on the host and on the board.