docs.rs failed to build paint-cat-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
paint-cat
Display-list construction: walks a layout-cat LayoutTree and emits a sequence of PaintCommands (FillRect, StrokeRect, FillText) for a backend renderer to consume.
Backend-agnostic; no platform graphics dependencies.
paint-cat is the fifth sub-crate of a comp-cat-rs Servo-replacement webview runtime targeting Tauri integration. Same framework constraints: no mut, no Rc/Arc, no interior mutability, no panics.
Example
use ;
v0 scope
- Walk
LayoutTreein document order, emitting commands per box. - Background:
FillRectwithbackground-colorif non-transparent. - Border: 4
FillRects (top/right/bottom/left) when border-width > 0. - Text:
FillTextforTextDOM children, using the parent box's content rect and color. - Stacking: child boxes paint after their parent (back-to-front).
Deferred to v0.2+
- z-index ordering / stacking contexts.
border-style,box-shadow,border-radius,clip-path.- Backgrounds beyond solid color.
- Text shaping / font selection.
- Compositing / opacity.
License
MIT OR Apache-2.0