Expand description
Optional Ratatui integration for Urushi.
The adapter converts Urushi styles and resolved views into Ratatui representations. Stateless widgets write into a buffer the caller owns.
Two entry points share one cell-writing path. ViewWidget and
RatatuiWidget serve a plain Ratatui application drawing into a Rect
it already owns; they resolve the view and discard everything but the
cells. A caller-owned Ratatui renderer that also needs the resolution
resolves under available and writes the result with draw_resolved.
A caller filling a sized anchor can use
anchor_placement to translate its complete logical rectangle and
accumulated visible intersection into a destination and source offset.
Structs§
- Ratatui
Anchor - A resolved anchor translated into a caller-owned Ratatui area.
- Ratatui
Style - One logical
TextStyleas a Ratatui style. - Ratatui
Widget - A stateless Ratatui widget backed by an Urushi
BlockStyle. - View
Widget - A stateless Ratatui widget that draws an Urushi
View.
Enums§
- Cell
Write Mode - How an Urushi cell combines with content already present in a Ratatui buffer.
Traits§
- Ratatui
Style Ext - Extension methods for adapting an Urushi style to Ratatui.
Functions§
- anchor_
placement - Translates an anchor and its accumulated visible intersection into
area. - available
- Translates a target rectangle into the area the layout pass resolves under.
- draw_
resolved - Writes an already resolved view into
buffer, anchored atarea’s origin. - draw_
resolved_ with_ mode - Writes an already resolved view with the selected cell composition behavior.