row

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package row implements creation of rows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(height ...float64) core.Row

New is responsible to create a core.Row.

Height is an optional parameter that, if not sent, will be calculated automatically Height is defined in mm.

Types

type Row

type Row struct {
	// contains filtered or unexported fields
}

func (*Row) Add

func (r *Row) Add(cols ...core.Col) core.Row

Add is responsible to add one or more core.Col to a core.Row.

func (*Row) GetColumns

func (r *Row) GetColumns() []core.Col

GetColumns returns the columns of a core.Row.

func (*Row) GetHeight

func (r *Row) GetHeight(provider core.Provider, cell *entity.Cell) float64

GetHeight returns the height of a core.Row. For auto-height rows, the computed height is cached per cell.Width: the same row queried at different widths (e.g. inside a half-width flex column vs. at the full content width) returns wrap-aware results without staling the cache. Explicit-height rows (height passed to New()) ignore the cache.

func (*Row) GetStructure

func (r *Row) GetStructure() *node.Node[core.Structure]

GetStructure returns the Structure of a core.Row.

func (*Row) Render

func (r *Row) Render(provider core.Provider, cell entity.Cell)

Render renders a Row into a PDF context.

func (*Row) SetConfig

func (r *Row) SetConfig(config *entity.Config)

SetConfig sets the Row configuration.

func (*Row) WithStyle

func (r *Row) WithStyle(style *props.Cell) core.Row

WithStyle sets the style of a Row.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL