row

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 4 Imported by: 24

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 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() float64

GetHeight returns the height of a core.Row.

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