Documentation
¶
Index ¶
- type DrawerOptions
- type DrawerState
- type ElementDrawer
- func NewBarcode128Drawer() *ElementDrawer
- func NewBarcodeAztecDrawer() *ElementDrawer
- func NewBarcodeDatamatrixDrawer() *ElementDrawer
- func NewBarcodePdf417Drawer() *ElementDrawer
- func NewBarcodeQrDrawer() *ElementDrawer
- func NewGraphicBoxDrawer() *ElementDrawer
- func NewGraphicCircleDrawer() *ElementDrawer
- func NewGraphicDiagonalLineDrawer() *ElementDrawer
- func NewGraphicFieldDrawer() *ElementDrawer
- func NewMaxicodeDrawer() *ElementDrawer
- func NewTextFieldDrawer() *ElementDrawer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DrawerOptions ¶
func (DrawerOptions) WithDefaults ¶
func (d DrawerOptions) WithDefaults() DrawerOptions
type DrawerState ¶ added in v1.12.0
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
Click to show internal directories.
Click to hide internal directories.