drawers

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrawerOptions

type DrawerOptions struct {
	LabelWidthMm  float64
	LabelHeightMm float64
	Dpmm          int
}

func (DrawerOptions) WithDefaults

func (d DrawerOptions) WithDefaults() DrawerOptions

type DrawerState added in v1.12.0

type DrawerState struct {
	AutoPosX float64
	AutoPosY float64
}

func (*DrawerState) GetTextPosition added in v1.12.0

func (state *DrawerState) GetTextPosition(text *elements.TextField) (float64, float64)

func (*DrawerState) UpdateAutomaticTextPosition added in v1.12.0

func (state *DrawerState) UpdateAutomaticTextPosition(text *elements.TextField, w, scaleX float64)

type ElementDrawer

type ElementDrawer struct {
	Draw func(gCtx *gg.Context, element interface{}, options DrawerOptions, state *DrawerState) error
}

func NewBarcode128Drawer

func NewBarcode128Drawer() *ElementDrawer

func NewBarcodeAztecDrawer added in v1.1.0

func NewBarcodeAztecDrawer() *ElementDrawer

func NewBarcodeDatamatrixDrawer added in v1.6.0

func NewBarcodeDatamatrixDrawer() *ElementDrawer

func NewBarcodePdf417Drawer

func NewBarcodePdf417Drawer() *ElementDrawer

func NewBarcodeQrDrawer added in v1.7.0

func NewBarcodeQrDrawer() *ElementDrawer

func NewGraphicBoxDrawer

func NewGraphicBoxDrawer() *ElementDrawer

func NewGraphicCircleDrawer

func NewGraphicCircleDrawer() *ElementDrawer

func NewGraphicDiagonalLineDrawer added in v1.3.0

func NewGraphicDiagonalLineDrawer() *ElementDrawer

func NewGraphicFieldDrawer

func NewGraphicFieldDrawer() *ElementDrawer

func NewMaxicodeDrawer

func NewMaxicodeDrawer() *ElementDrawer

func NewTextFieldDrawer

func NewTextFieldDrawer() *ElementDrawer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳