Repository navigation
Frust 0.6.5
A patch release (the 0.6.x line continues) whose one source-affecting change is the removal of the
public fn frust_engine::gpu::targets::atlas_page_fits (the Changed list gives the migration).
Everything else is additive, a fix, or a deprecation.
It adds the paged container page_view with PageController and PageSnap physics, the live-card
switcher pattern motion::card_switcher with its Glyph skin plus Glyph fab and page_dots, the
pinch vocabulary through the facade, and reduce-motion handling in AnimatedScale and
AnimatedOpacity. The render-side TierCaps name is now EngineCaps; the old name is a deprecated
alias that is removed in 0.7.
Added
- frust facade re-exports the pinch vocabulary (
pinch_detector,PinchDetectorView,
PinchDetectorWidget,PinchRecognizer,PINCH_SLOP) at the crate root, and the scale/contact
event types (ScaleEvent,ScalePhase,PointerId,PointerSource) both at the crate root and
underfrust::authoring. The pinch names are not re-exported underfrust::authoring. frust_glyph::fab, a GlyphFloatingActionButton-shaped action button that fits
scaffold(..).fab(..). It has.mini(..),.tooltip(..)(the accessible name) and.disabled(..)
variants and rests on the newfloating()elevation token, which sits between elevation levels
3 and 4; a standalonecard_stage()token covers the switcher stage.frust_glyph::page_dots, a page indicator forpage_viewthat takes a page count and the
current index.frust_glyph::card_switcherwithswitcher_barandswitcher_chip, the Glyph skin over the
live-card switcher pattern, including an Android back affordance (SwitcherBack).frust::motion::card_switcher(CardSwitcherView,peer_card/PeerCard), a live-card
switcher pattern. The page shrinks to a card by scaling about the stage centre, with hit testing
following the transformed card, then takes a rounded clip, a shadow and a scrim, and blocks input
beneath it. A peer strip snaps
between cards, and an expanding phase returns to the full page. Under
theme.motion.reduce_motionthe transitions collapse.frust::PageSnap, a port of Flutter'sPageScrollPhysicson theScrollPhysicsseam
(PageSnap::fraction(..)/PageSnap::extent(..), chainable withBouncingand the other
physics).frust::page_viewwithPageViewandPageController, a paged container.frust-shell-common'sbuild_tree_updateandtree_update_from_parts: the one AccessKit tree
assembly the desktop, iOS and Android shells share.
Changed
- Breaking (narrow):
frust_engine::gpu::targets::atlas_page_fitsis removed, because
frust-engine no longer calls it. Migration: compare the page size with the adapter limit
yourself,page.0 > 0 && page.1 > 0 && page.0 <= caps.max_texture_dimension_2d && page.1 <= caps.max_texture_dimension_2d(caps: &frust_gpu::TierCaps);max_texture_size(caps)in the same
module gives the engine's own bound.
Deprecated
frust_render::TierCapsis renamedEngineCaps. The old name stays as a deprecated type alias
through 0.6 and is removed in 0.7. Migration:use frust_render::EngineCaps;.
frust_gpu::TierCaps, the adapter-probed type, is unchanged.
Fixed
-
frust::motion::AnimatedScaleandAnimatedOpacitynow honourtheme.motion.reduce_motion:
AnimatedOpacityfades over 120 ms linear andAnimatedScalesnaps to its target on the first
paint, each overriding any explicit timing, matching the navigator andPatternSwitcher. -
frust-camera's barcode decoder no longer drops a QR code whose payload is not UTF-8 (a
byte-mode code carrying binary data or Latin-1 text): it is reported with the exact bytes in
Barcode::raw_bytesand a lossyraw_value.DetectionPolicy::NoDuplicatestells such payloads
apart by their bytes. -
frust-engine: a dashed stroke whose dash count is unbounded (a tiny period over a huge path) now
compiles in bounded time. Only the stretch near the viewport is dashed, with the phase carried
across the skipped length. Runs whose device dash period is below half a pixel, or that pass the
per-element budget of 65,536 periods, are stroked solid. Oversize strokes keep their outline
within 0.25 px under rotated and anisotropic transforms (#141). -
Android accessibility: the TalkBack focus rectangles now come from the shared AccessKit tree
assembly, whose root carries the frame density so node bounds are published in physical pixels,
and the tree is re-published when the density changes (#142).