text

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 6 Imported by: 26

Documentation

Overview

Package text implements creation of texts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(value string, ps ...props.Text) core.Component

New is responsible to create an instance of a Text.

func NewCol

func NewCol(size int, value string, ps ...props.Text) core.Col

NewCol is responsible to create an instance of a Text wrapped in a Col.

func NewRow

func NewRow(height float64, value string, ps ...props.Text) core.Row

NewRow is responsible to create an instance of a Text wrapped in a Row.

Types

type Text

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

func (*Text) GetStructure

func (t *Text) GetStructure() *node.Node[core.Structure]

GetStructure returns the Structure of a Text.

func (*Text) Render

func (t *Text) Render(provider core.Provider, cell *entity.Cell)

Render renders a Text into a PDF context.

func (*Text) SetConfig

func (t *Text) SetConfig(config *entity.Config)

SetConfig sets the config.

Jump to

Keyboard shortcuts

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