Documentation ¶
Overview ¶
Package code implements creation of Barcode, MatrixCode and QrCode. nolint:dupl // It's similar to Barcode.go and it's hard to extract common code.
Package code implements creation of Barcode, MatrixCode and QrCode. nolint:dupl
Package code implements creation of Barcode, MatrixCode and QrCode. nolint:dupl
Index ¶
- func NewBar(code string, ps ...props.Barcode) core.Component
- func NewBarCol(size int, code string, ps ...props.Barcode) core.Col
- func NewBarRow(height float64, code string, ps ...props.Barcode) core.Row
- func NewMatrix(code string, barcodeProps ...props.Rect) core.Component
- func NewMatrixCol(size int, code string, ps ...props.Rect) core.Col
- func NewMatrixRow(height float64, code string, ps ...props.Rect) core.Row
- func NewQr(code string, barcodeProps ...props.Rect) core.Component
- func NewQrCol(size int, code string, ps ...props.Rect) core.Col
- func NewQrRow(height float64, code string, ps ...props.Rect) core.Row
- type Barcode
- type MatrixCode
- type QrCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMatrixCol ¶
NewMatrixCol is responsible to create an instance of a MatrixCode wrapped in a Col.
func NewMatrixRow ¶
NewMatrixRow is responsible to create an instance of a MatrixCode wrapped in a Row.
Types ¶
type Barcode ¶
type Barcode struct {
// contains filtered or unexported fields
}
func (*Barcode) GetStructure ¶
GetStructure returns the Structure of a Barcode.
type MatrixCode ¶
type MatrixCode struct {
// contains filtered or unexported fields
}
func (*MatrixCode) GetStructure ¶
func (m *MatrixCode) GetStructure() *node.Node[core.Structure]
GetStructure returns the Structure of a MatrixCode.
func (*MatrixCode) Render ¶
func (m *MatrixCode) Render(provider core.Provider, cell *entity.Cell)
Render renders a MatrixCode into a PDF context.
func (*MatrixCode) SetConfig ¶
func (m *MatrixCode) SetConfig(config *entity.Config)
SetConfig sets the configuration of a MatrixCode.