Documentation ¶
Overview ¶
Package line implements creation of lines.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New is responsible to create an instance of a Line.
Example ¶
ExampleNew demonstrates how create a line component.
m := maroto.New() line := line.New() col := col.New(12).Add(line) m.AddRow(10, col) // generate document
Output:
func NewAutoRow ¶ added in v2.1.0
NewRow is responsible to create an instance of a Line wrapped in a automatic Row.
func NewCol ¶
NewCol is responsible to create an instance of a Line wrapped in a Col.
Example ¶
ExampleNewCol demonstrates how to crete a line wrapped into a column.
m := maroto.New() lineCol := line.NewCol(12) m.AddRow(10, lineCol) // generate document
Output:
Types ¶
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
func (*Line) GetHeight ¶ added in v2.1.0
GetHeight returns the height that the line will have in the PDF
func (*Line) GetStructure ¶
GetStructure returns the Structure of a Line.
Click to show internal directories.
Click to hide internal directories.