|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
A paginated reflowed-text body: page state + margins + engine seam. More...
#include <ra8_widget_reflow_view.h>
A paginated reflowed-text body: page state + margins + engine seam.
Caller-owned plain data bound to a ra8_widget_t with ra8_widget_reflow_view_init. render clears the widget rect to bg (through the injected ra8_widget_paint_t) and asks the seam to paint page inside the body rect (the widget rect inset by margin_x / margin_y). on_input routes a touch: it offers the tap to follow_link first (a link jump adopts the returned page); otherwise it turns the page – a tap on the left half steps back, the right half steps forward, clamped at page 0 and the last page. A body tap is always consumed.