Versions in this module Expand all Collapse all v0 v0.1.11 Nov 26, 2026 v0.1.10 Nov 23, 2026 v0.1.9 Nov 21, 2026 v0.1.8 Nov 20, 2026 Changes in this version type TextFragment + IsPlaceholder bool + func (f *TextFragment) Color() style.Value v0.1.7 Nov 14, 2026 v0.1.6 Nov 13, 2026 v0.1.5 Nov 12, 2026 Changes in this version type Cache + func (cache *Cache) BoxForNode(node *dom.Node) *Box v0.1.4 Nov 11, 2026 v0.1.3 Nov 9, 2026 v0.1.2 Nov 9, 2026 Changes in this version + func CaretIndexForTextFragments(fragments []TextFragment, x float64) (int, bool) + func CaretXForTextFragments(fragments []TextFragment, caret int) (float64, bool) + func ScrollbarSize(computed *style.ComputedStyle) float64 + func UsedLineHeight(computed *style.ComputedStyle, face *font.Face) float64 + type Box struct + Border Edges + Children []*Box + Content Rect + ControlFragments []ControlFragment + FlowMarginBox Rect + ImageFragments []ImageFragment + InlineBackgrounds []InlineBackground + Margin Edges + Node *dom.Node + Padding Edges + Parent *Box + ScrollHeight float64 + ScrollWidth float64 + ScrollbarGutter Edges + StableID string + Style *style.ComputedStyle + TextFragments []TextFragment + TextHeight float64 + Viewport Rect + func Build(root *dom.Node, styles style.Map, face *font.Face, ...) (*Box, error) + func BuildWithFonts(root *dom.Node, styles style.Map, face, boldFace *font.Face, ...) (*Box, error) + func (b *Box) BorderBox() Rect + func (b *Box) CachedPaintHash() (uint64, bool) + func (b *Box) GeometryHash() uint64 + func (b *Box) InvalidatePaintHash() + func (b *Box) MarginBox() Rect + func (b *Box) OwnGeometryHash() uint64 + func (b *Box) PaddingBox() Rect + func (b *Box) ScrollportBox() Rect + func (b *Box) SetCachedPaintHash(hash uint64) + func (b *Box) UpdateInlineBackgrounds(styles style.Map) + func (box *Box) Restyle(styles style.Map) + type Cache struct + Changed []*Box + Removed []*Box + Reordered []*Box + ReserveScrollbarSpace bool + Root *Box + Work Work + func (cache *Cache) MaintainCache() + func (cache *Cache) Restyle(nodes []*dom.Node, styles style.Map) + func (cache *Cache) Update(root *dom.Node, styles style.Map, face, boldFace *font.Face, ...) (*Box, error) + type ControlFragment struct + Border Edges + Content Rect + ImageFragments []ImageFragment + Line int + Node *dom.Node + Padding Edges + Rect Rect + Style *style.ComputedStyle + TextFragments []TextFragment + type Edges struct + Bottom float64 + Left float64 + Right float64 + Top float64 + type GlyphFragment = font.PositionedGlyph + type ImageFragment struct + Line int + Node *dom.Node + Rect Rect + Style *style.ComputedStyle + type InlineBackground struct + Line int + Node *dom.Node + Rect Rect + Style *style.ComputedStyle + type Rect struct + Height float64 + Width float64 + X float64 + Y float64 + type TextFragment struct + Glyphs []GlyphFragment + Line int + Node *dom.Node + Rect Rect + Style *style.ComputedStyle + Text string + type TextLayoutOptions struct + AbsoluteContaining Rect + ContentHeight float64 + Context *layoutContext + Face *font.Face + FlowBoxes []*Box + FlowHeight float64 + InlineBoxFragments []inlineBoxFragment + InlineBoxes map[*dom.Node]*Box + Node *dom.Node + OriginX float64 + OriginY float64 + Reuse *Box + StyleMap style.Map + Width float64 + type Work struct + Created int + LocalFlexReflows int + OrderContainers int + Reflowed int + Reused int + TopologyVisited int + Translated int + Visited int