GetRouteOrigin returns the browser location's scheme://host[:port] once,
so a DOM or Canvas application can turn its own relative paths into the
absolute http/https URLs the HTTP transfer layer requires. The route
test checks the file: origin the headless harness loads.
Inner Breeze's practice manuals and settings move into the Practices
package, and they change speeds and durations with sliders and show a hold
with a progress bar. Slider, DiscreteSlider and Progress are now hosted:
the host drags the slider with its own pointer and answers the value, and
paints the progress bar.
A portable bundle could draw boxes and icons but no line at an angle, so a
chart's trend lines and dots needed compiled screens. Kryon's shapes are now
hosted like Box: the bundle sends their props and the host fills them with
its renderer's RasterTriangles, which every Kryon renderer provides. The
widget host test stubs that rasterizer, as it draws nothing.
A portable form could not draw a fieldset around its sections or place a
toggle at a row's end, because both needed the host's style and font
metrics. Fieldset is now hosted like Box, and the new toggle_measure module
answers the size a toggle needs, from its host as ToggleSize. The host
encodes the answer with the Vector2 encoder, now part of the widget codec.
A portable bundle could not show a row of choices such as Habits' week and
calendar views, so Inner Breeze drew them in compiled screens. Segmented
controls are now hosted like tab bars: the bundle sends its props and up to
32 options and the host draws them with its own widget and style.
Measure screen-sized text pages from the drawing props, preserve UTF-8 boundaries, and apply typeface and line spacing consistently through hosted widgets and queued paint. Keep hosted font assets inside their app resource policy.
A floating pad has lighter arms, a lighter hub and outlined arrows, so the
pieces under it stay readable. Drawn after the board, it takes the presses
there, as the topmost widget does. The hosted ZX probe uses the floating pad.
Pressing an arm steps at once, holding repeats like an arrow key, sliding
onto another arm turns and the hub stops; a quick tap steps once. Laws prove
the arm and timing rules, and the hosted browser test holds, slides, rests
and taps it. A debuggable Android build runs the test driver when its
private files hold a kryon-test-driver folder, so phone tests can press
widgets by label.
A screen of icons queued hundreds of rectangles per icon: on a Moto e6
the habit shop's grid of 75 symbols spent over half of each 95 ms frame
queueing and drawing them. A host can now register SvgIconUseTextures,
and each cached icon is then one image of exactly the pixels its cells
paint. raylib registers in OpenRaylib, or through RaylibUseIconTextures
for hosts with their own window, and drops the textures with a lost
context. A texture leaving the cache is freed only after 64 more have
left, so a frame that still queued it draws it. Other hosts keep the
cells.
A bundle could measure a line's width but not how tall a paragraph wraps,
so pages guessed from character counts. TextHeight returns the height
Text takes for the text in its bounds' width, from the host's fonts.
A symbol beside a name or a coin beside an amount had no hosted widget:
only buttons carried icons. SvgIcon paints a Shape in the caller's color,
and bundles submit it to their host like the other widgets.
Apps drew lines at an angle, circles, arcs, triangles and gradients with
raylib calls of their own, outside the widget tree. Line, Circle (with an
optional fade from centre to rim), Ring (whole or an arc) and Triangle now
draw them as decorative widgets like Box, and BoxProps.fill_bottom fades a
box's fill from top to bottom.
Each queues one paint command whose inputs the paint queue compares, so an
unchanged frame stays reusable. Kryon cuts the shape into triangles, clips
them to the parent's clip, and hands each colour's triangles to the host in
one RasterTriangles call, which raylib, the canvas, Cairo, the pixmap host,
Plan 9's libdraw and the terminal implement. The canvas fills a call as one
path, so its antialiasing leaves no seam between triangles.
A line of text with several pictures in it draws them all: a line's
blocks follow it in list order, one under another, and only its first may
take the place of its last row with cover. Content height, carets, presses
and painting walk all of a line's boxes; a press inside any of them is the
end of the line. A list where a later box of a line covers it, or whose
starts go back, is ignored as a whole, as before.
Tests: two boxes after a covered line and after a shown line, in every
target and bundle; both boxes of a line paint their picture.
A TextArea can now preview a markup language such as Markdown without
changing its value:
- blocks: a box under a logical line, or in place of its last row with
cover, drawing an asset fitted inside it, or a soft frame with a label
while the picture is missing. A press inside a box is the end of its line.
- lines: a logical line at its own size, which wraps, takes caret stops and
takes height at that size, as a heading does.
- italic: bytes drawn slanted with unchanged advances. Raylib leans the
glyph quads with an rlgl shear; other backends draw them upright.
Rows are placed by one walk shared by content height, carets, presses,
arrow keys and painting. During an IME composition, lines and boxes after
it move with the preedit. Each list is sorted, one entry per line at line
starts, or ignored as a whole; without them the layout is the plain area's.
The widget host passes the new fields to hosted apps and draws a box's
picture only when the bundle may draw that asset.
Tests: placement, carets, presses, row keys, line sizes, validation and
composition offsets checked against the plain layout in C, C++, Go, Python,
Rust and bundles; a covered line paints its picture and not its bytes.