mocks

package
v0.28.8 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	mock.Mock
}

Code is an autogenerated mock type for the Code type

func (*Code) AddBar

func (_m *Code) AddBar(code string, cell internal.Cell, prop props.Barcode) error

AddBar provides a mock function with given fields: code, cell, prop

func (*Code) AddQr

func (_m *Code) AddQr(code string, cell internal.Cell, prop props.Rect)

AddQr provides a mock function with given fields: code, cell, prop

type Font

type Font struct {
	mock.Mock
}

Font is an autogenerated mock type for the Font type

func (*Font) GetFamily

func (_m *Font) GetFamily() consts.Family

GetFamily provides a mock function with given fields:

func (*Font) GetFont

func (_m *Font) GetFont() (consts.Family, consts.Style, float64)

GetFont provides a mock function with given fields:

func (*Font) GetScaleFactor added in v0.28.0

func (_m *Font) GetScaleFactor() float64

GetScaleFactor provides a mock function with given fields:

func (*Font) GetSize

func (_m *Font) GetSize() float64

GetSize provides a mock function with given fields:

func (*Font) GetStyle

func (_m *Font) GetStyle() consts.Style

GetStyle provides a mock function with given fields:

func (*Font) SetFamily

func (_m *Font) SetFamily(family consts.Family)

SetFamily provides a mock function with given fields: family

func (*Font) SetFont

func (_m *Font) SetFont(family consts.Family, style consts.Style, size float64)

SetFont provides a mock function with given fields: family, style, size

func (*Font) SetSize

func (_m *Font) SetSize(size float64)

SetSize provides a mock function with given fields: size

func (*Font) SetStyle

func (_m *Font) SetStyle(style consts.Style)

SetStyle provides a mock function with given fields: style

type Image

type Image struct {
	mock.Mock
}

Image is an autogenerated mock type for the Image type

func (*Image) AddFromBase64

func (_m *Image) AddFromBase64(stringBase64 string, cell internal.Cell, prop props.Rect, extension consts.Extension) error

AddFromBase64 provides a mock function with given fields: stringBase64, cell, prop, extension

func (*Image) AddFromFile

func (_m *Image) AddFromFile(path string, cell internal.Cell, prop props.Rect) error

AddFromFile provides a mock function with given fields: path, cell, prop

type Maroto

type Maroto struct {
	mock.Mock
}

Maroto is an autogenerated mock type for the Maroto type

func (*Maroto) Barcode

func (_m *Maroto) Barcode(code string, prop ...props.Barcode) error

Barcode provides a mock function with given fields: code, prop

func (*Maroto) Base64Image

func (_m *Maroto) Base64Image(base64 string, extension consts.Extension, prop ...props.Rect) error

Base64Image provides a mock function with given fields: base64, extension, prop

func (*Maroto) Col

func (_m *Maroto) Col(width uint, closure func())

Col provides a mock function with given fields: closure

func (*Maroto) ColSpace

func (_m *Maroto) ColSpace(uint)

ColSpace provides a mock function with given fields:

func (*Maroto) ColSpaces

func (_m *Maroto) ColSpaces(qtd int)

ColSpaces provides a mock function with given fields: qtd

func (*Maroto) FileImage

func (_m *Maroto) FileImage(filePathName string, prop ...props.Rect) error

FileImage provides a mock function with given fields: filePathName, prop

func (*Maroto) GetBorder added in v0.28.0

func (_m *Maroto) GetBorder() bool

GetBorder provides a mock function with given fields:

func (*Maroto) GetCurrentOffset added in v0.28.0

func (_m *Maroto) GetCurrentOffset() float64

GetCurrentOffset provides a mock function with given fields:

func (*Maroto) GetCurrentPage added in v0.28.0

func (_m *Maroto) GetCurrentPage() int

GetCurrentPage provides a mock function with given fields:

func (*Maroto) GetPageMargins added in v0.28.0

func (_m *Maroto) GetPageMargins() (float64, float64, float64, float64)

GetPageMargins provides a mock function with given fields:

func (*Maroto) GetPageSize

func (_m *Maroto) GetPageSize() (float64, float64)

GetPageSize provides a mock function with given fields:

func (*Maroto) Line

func (_m *Maroto) Line(spaceHeight float64)

Line provides a mock function with given fields: spaceHeight

func (*Maroto) Output

func (_m *Maroto) Output() (bytes.Buffer, error)

Output provides a mock function with given fields:

func (*Maroto) OutputFileAndClose

func (_m *Maroto) OutputFileAndClose(filePathName string) error

OutputFileAndClose provides a mock function with given fields: filePathName

func (*Maroto) QrCode

func (_m *Maroto) QrCode(code string, prop ...props.Rect)

QrCode provides a mock function with given fields: code, prop

func (*Maroto) RegisterFooter added in v0.28.0

func (_m *Maroto) RegisterFooter(closure func())

RegisterFooter provides a mock function with given fields: closure

func (*Maroto) RegisterHeader

func (_m *Maroto) RegisterHeader(closure func())

RegisterHeader provides a mock function with given fields: closure

func (*Maroto) Row

func (_m *Maroto) Row(height float64, closure func())

Row provides a mock function with given fields: height, closure

func (*Maroto) SetBackgroundColor added in v0.28.0

func (_m *Maroto) SetBackgroundColor(_a0 color.Color)

SetBackgroundColor provides a mock function with given fields: _a0

func (*Maroto) SetBorder added in v0.28.0

func (_m *Maroto) SetBorder(on bool)

SetBorder provides a mock function with given fields: on

func (*Maroto) SetPageMargins added in v0.28.0

func (_m *Maroto) SetPageMargins(left float64, top float64, right float64)

SetPageMargins provides a mock function with given fields: left, top, right

func (*Maroto) Signature

func (_m *Maroto) Signature(label string, prop ...props.Font)

Signature provides a mock function with given fields: label, prop

func (*Maroto) TableList

func (_m *Maroto) TableList(header []string, contents [][]string, prop ...props.TableList)

TableList provides a mock function with given fields: header, contents, prop

func (*Maroto) Text

func (_m *Maroto) Text(text string, prop ...props.Text)

Text provides a mock function with given fields: text, prop

type Math

type Math struct {
	mock.Mock
}

Math is an autogenerated mock type for the Math type

func (*Math) GetCenterCorrection

func (_m *Math) GetCenterCorrection(outerSize float64, innerSize float64) float64

GetCenterCorrection provides a mock function with given fields: outerSize, innerSize

func (*Math) GetRectCenterColProperties

func (_m *Math) GetRectCenterColProperties(imageWidth float64, imageHeight float64, colWidth float64, colHeight float64, xColOffset float64, percent float64) (float64, float64, float64, float64)

GetRectCenterColProperties provides a mock function with given fields: imageWidth, imageHeight, qtdCols, colHeight, indexCol, percent

func (*Math) GetRectNonCenterColProperties

func (_m *Math) GetRectNonCenterColProperties(imageWidth float64, imageHeight float64, colWidth float64, colHeight float64, xColOffset float64, prop props.Rect) (float64, float64, float64, float64)

GetRectNonCenterColProperties provides a mock function with given fields: imageWidth, imageHeight, qtdCols, colHeight, indexCol, prop

func (*Math) GetWidthPerCol

func (_m *Math) GetWidthPerCol(percent float64) float64

GetWidthPerCol provides a mock function with given fields: qtdCols

type Pdf

type Pdf struct {
	mock.Mock
}

Pdf is an autogenerated mock type for the Pdf type

func (*Pdf) AddFont

func (_m *Pdf) AddFont(familyStr string, styleStr string, fileStr string)

AddFont provides a mock function with given fields: familyStr, styleStr, fileStr

func (*Pdf) AddFontFromBytes

func (_m *Pdf) AddFontFromBytes(familyStr string, styleStr string, jsonFileBytes []byte, zFileBytes []byte)

AddFontFromBytes provides a mock function with given fields: familyStr, styleStr, jsonFileBytes, zFileBytes

func (*Pdf) AddFontFromReader

func (_m *Pdf) AddFontFromReader(familyStr string, styleStr string, r io.Reader)

AddFontFromReader provides a mock function with given fields: familyStr, styleStr, r

func (*Pdf) AddLayer

func (_m *Pdf) AddLayer(name string, visible bool) int

AddLayer provides a mock function with given fields: name, visible

func (_m *Pdf) AddLink() int

AddLink provides a mock function with given fields:

func (*Pdf) AddPage

func (_m *Pdf) AddPage()

AddPage provides a mock function with given fields:

func (*Pdf) AddPageFormat

func (_m *Pdf) AddPageFormat(orientationStr string, size gofpdf.SizeType)

AddPageFormat provides a mock function with given fields: orientationStr, size

func (*Pdf) AddSpotColor

func (_m *Pdf) AddSpotColor(nameStr string, c byte, m byte, y byte, k byte)

AddSpotColor provides a mock function with given fields: nameStr, c, m, y, k

func (*Pdf) AliasNbPages

func (_m *Pdf) AliasNbPages(aliasStr string)

AliasNbPages provides a mock function with given fields: aliasStr

func (*Pdf) Arc

func (_m *Pdf) Arc(x float64, y float64, rx float64, ry float64, degRotate float64, degStart float64, degEnd float64, styleStr string)

Arc provides a mock function with given fields: x, y, rx, ry, degRotate, degStart, degEnd, styleStr

func (*Pdf) ArcTo

func (_m *Pdf) ArcTo(x float64, y float64, rx float64, ry float64, degRotate float64, degStart float64, degEnd float64)

ArcTo provides a mock function with given fields: x, y, rx, ry, degRotate, degStart, degEnd

func (*Pdf) BeginLayer

func (_m *Pdf) BeginLayer(id int)

BeginLayer provides a mock function with given fields: id

func (*Pdf) Beziergon

func (_m *Pdf) Beziergon(points []gofpdf.PointType, styleStr string)

Beziergon provides a mock function with given fields: points, styleStr

func (*Pdf) Bookmark

func (_m *Pdf) Bookmark(txtStr string, level int, y float64)

Bookmark provides a mock function with given fields: txtStr, level, y

func (*Pdf) Cell

func (_m *Pdf) Cell(w float64, h float64, txtStr string)

Cell provides a mock function with given fields: w, h, txtStr

func (*Pdf) CellFormat

func (_m *Pdf) CellFormat(w float64, h float64, txtStr string, borderStr string, ln int, alignStr string, fill bool, link int, linkStr string)

CellFormat provides a mock function with given fields: w, h, txtStr, borderStr, ln, alignStr, fill, link, linkStr

func (*Pdf) Cellf

func (_m *Pdf) Cellf(w float64, h float64, fmtStr string, args ...interface{})

Cellf provides a mock function with given fields: w, h, fmtStr, args

func (*Pdf) Circle

func (_m *Pdf) Circle(x float64, y float64, r float64, styleStr string)

Circle provides a mock function with given fields: x, y, r, styleStr

func (*Pdf) ClearError

func (_m *Pdf) ClearError()

ClearError provides a mock function with given fields:

func (*Pdf) ClipCircle

func (_m *Pdf) ClipCircle(x float64, y float64, r float64, outline bool)

ClipCircle provides a mock function with given fields: x, y, r, outline

func (*Pdf) ClipEllipse

func (_m *Pdf) ClipEllipse(x float64, y float64, rx float64, ry float64, outline bool)

ClipEllipse provides a mock function with given fields: x, y, rx, ry, outline

func (*Pdf) ClipEnd

func (_m *Pdf) ClipEnd()

ClipEnd provides a mock function with given fields:

func (*Pdf) ClipPolygon

func (_m *Pdf) ClipPolygon(points []gofpdf.PointType, outline bool)

ClipPolygon provides a mock function with given fields: points, outline

func (*Pdf) ClipRect

func (_m *Pdf) ClipRect(x float64, y float64, w float64, h float64, outline bool)

ClipRect provides a mock function with given fields: x, y, w, h, outline

func (*Pdf) ClipRoundedRect

func (_m *Pdf) ClipRoundedRect(x float64, y float64, w float64, h float64, r float64, outline bool)

ClipRoundedRect provides a mock function with given fields: x, y, w, h, r, outline

func (*Pdf) ClipText

func (_m *Pdf) ClipText(x float64, y float64, txtStr string, outline bool)

ClipText provides a mock function with given fields: x, y, txtStr, outline

func (*Pdf) Close

func (_m *Pdf) Close()

Close provides a mock function with given fields:

func (*Pdf) ClosePath

func (_m *Pdf) ClosePath()

ClosePath provides a mock function with given fields:

func (*Pdf) CreateTemplate

func (_m *Pdf) CreateTemplate(fn func(*gofpdf.Tpl)) gofpdf.Template

CreateTemplate provides a mock function with given fields: fn

func (*Pdf) CreateTemplateCustom

func (_m *Pdf) CreateTemplateCustom(corner gofpdf.PointType, size gofpdf.SizeType, fn func(*gofpdf.Tpl)) gofpdf.Template

CreateTemplateCustom provides a mock function with given fields: corner, size, fn

func (*Pdf) Curve

func (_m *Pdf) Curve(x0 float64, y0 float64, cx float64, cy float64, x1 float64, y1 float64, styleStr string)

Curve provides a mock function with given fields: x0, y0, cx, cy, x1, y1, styleStr

func (*Pdf) CurveBezierCubic

func (_m *Pdf) CurveBezierCubic(x0 float64, y0 float64, cx0 float64, cy0 float64, cx1 float64, cy1 float64, x1 float64, y1 float64, styleStr string)

CurveBezierCubic provides a mock function with given fields: x0, y0, cx0, cy0, cx1, cy1, x1, y1, styleStr

func (*Pdf) CurveBezierCubicTo

func (_m *Pdf) CurveBezierCubicTo(cx0 float64, cy0 float64, cx1 float64, cy1 float64, x float64, y float64)

CurveBezierCubicTo provides a mock function with given fields: cx0, cy0, cx1, cy1, x, y

func (*Pdf) CurveCubic

func (_m *Pdf) CurveCubic(x0 float64, y0 float64, cx0 float64, cy0 float64, x1 float64, y1 float64, cx1 float64, cy1 float64, styleStr string)

CurveCubic provides a mock function with given fields: x0, y0, cx0, cy0, x1, y1, cx1, cy1, styleStr

func (*Pdf) CurveTo

func (_m *Pdf) CurveTo(cx float64, cy float64, x float64, y float64)

CurveTo provides a mock function with given fields: cx, cy, x, y

func (*Pdf) DrawPath

func (_m *Pdf) DrawPath(styleStr string)

DrawPath provides a mock function with given fields: styleStr

func (*Pdf) Ellipse

func (_m *Pdf) Ellipse(x float64, y float64, rx float64, ry float64, degRotate float64, styleStr string)

Ellipse provides a mock function with given fields: x, y, rx, ry, degRotate, styleStr

func (*Pdf) EndLayer

func (_m *Pdf) EndLayer()

EndLayer provides a mock function with given fields:

func (*Pdf) Err

func (_m *Pdf) Err() bool

Err provides a mock function with given fields:

func (*Pdf) Error

func (_m *Pdf) Error() error

Error provides a mock function with given fields:

func (*Pdf) GetAlpha

func (_m *Pdf) GetAlpha() (float64, string)

GetAlpha provides a mock function with given fields:

func (*Pdf) GetAutoPageBreak

func (_m *Pdf) GetAutoPageBreak() (bool, float64)

GetAutoPageBreak provides a mock function with given fields:

func (*Pdf) GetCellMargin

func (_m *Pdf) GetCellMargin() float64

GetCellMargin provides a mock function with given fields:

func (*Pdf) GetConversionRatio

func (_m *Pdf) GetConversionRatio() float64

GetConversionRatio provides a mock function with given fields:

func (*Pdf) GetDrawColor

func (_m *Pdf) GetDrawColor() (int, int, int)

GetDrawColor provides a mock function with given fields:

func (*Pdf) GetDrawSpotColor

func (_m *Pdf) GetDrawSpotColor() (string, byte, byte, byte, byte)

GetDrawSpotColor provides a mock function with given fields:

func (*Pdf) GetFillColor

func (_m *Pdf) GetFillColor() (int, int, int)

GetFillColor provides a mock function with given fields:

func (*Pdf) GetFillSpotColor

func (_m *Pdf) GetFillSpotColor() (string, byte, byte, byte, byte)

GetFillSpotColor provides a mock function with given fields:

func (*Pdf) GetFontDesc

func (_m *Pdf) GetFontDesc(familyStr string, styleStr string) gofpdf.FontDescType

GetFontDesc provides a mock function with given fields: familyStr, styleStr

func (*Pdf) GetFontSize

func (_m *Pdf) GetFontSize() (float64, float64)

GetFontSize provides a mock function with given fields:

func (*Pdf) GetImageInfo

func (_m *Pdf) GetImageInfo(imageStr string) *gofpdf.ImageInfoType

GetImageInfo provides a mock function with given fields: imageStr

func (*Pdf) GetLineWidth

func (_m *Pdf) GetLineWidth() float64

GetLineWidth provides a mock function with given fields:

func (*Pdf) GetMargins

func (_m *Pdf) GetMargins() (float64, float64, float64, float64)

GetMargins provides a mock function with given fields:

func (*Pdf) GetPageSize

func (_m *Pdf) GetPageSize() (float64, float64)

GetPageSize provides a mock function with given fields:

func (*Pdf) GetPageSizeStr

func (_m *Pdf) GetPageSizeStr(sizeStr string) gofpdf.SizeType

GetPageSizeStr provides a mock function with given fields: sizeStr

func (*Pdf) GetStringWidth

func (_m *Pdf) GetStringWidth(s string) float64

GetStringWidth provides a mock function with given fields: s

func (*Pdf) GetTextColor

func (_m *Pdf) GetTextColor() (int, int, int)

GetTextColor provides a mock function with given fields:

func (*Pdf) GetTextSpotColor

func (_m *Pdf) GetTextSpotColor() (string, byte, byte, byte, byte)

GetTextSpotColor provides a mock function with given fields:

func (*Pdf) GetX

func (_m *Pdf) GetX() float64

GetX provides a mock function with given fields:

func (*Pdf) GetXY

func (_m *Pdf) GetXY() (float64, float64)

GetXY provides a mock function with given fields:

func (*Pdf) GetY

func (_m *Pdf) GetY() float64

GetY provides a mock function with given fields:

func (*Pdf) HTMLBasicNew

func (_m *Pdf) HTMLBasicNew() gofpdf.HTMLBasicType

HTMLBasicNew provides a mock function with given fields:

func (*Pdf) Image

func (_m *Pdf) Image(imageNameStr string, x float64, y float64, w float64, h float64, flow bool, tp string, link int, linkStr string)

Image provides a mock function with given fields: imageNameStr, x, y, w, h, flow, tp, link, linkStr

func (*Pdf) ImageOptions

func (_m *Pdf) ImageOptions(imageNameStr string, x float64, y float64, w float64, h float64, flow bool, options gofpdf.ImageOptions, link int, linkStr string)

ImageOptions provides a mock function with given fields: imageNameStr, x, y, w, h, flow, options, link, linkStr

func (*Pdf) ImageTypeFromMime

func (_m *Pdf) ImageTypeFromMime(mimeStr string) string

ImageTypeFromMime provides a mock function with given fields: mimeStr

func (*Pdf) Line

func (_m *Pdf) Line(x1 float64, y1 float64, x2 float64, y2 float64)

Line provides a mock function with given fields: x1, y1, x2, y2

func (*Pdf) LineTo

func (_m *Pdf) LineTo(x float64, y float64)

LineTo provides a mock function with given fields: x, y

func (*Pdf) LinearGradient

func (_m *Pdf) LinearGradient(x float64, y float64, w float64, h float64, r1 int, g1 int, b1 int, r2 int, g2 int, b2 int, x1 float64, y1 float64, x2 float64, y2 float64)

LinearGradient provides a mock function with given fields: x, y, w, h, r1, g1, b1, r2, g2, b2, x1, y1, x2, y2

func (_m *Pdf) Link(x float64, y float64, w float64, h float64, link int)

Link provides a mock function with given fields: x, y, w, h, link

func (*Pdf) LinkString

func (_m *Pdf) LinkString(x float64, y float64, w float64, h float64, linkStr string)

LinkString provides a mock function with given fields: x, y, w, h, linkStr

func (*Pdf) Ln

func (_m *Pdf) Ln(h float64)

Ln provides a mock function with given fields: h

func (*Pdf) MoveTo

func (_m *Pdf) MoveTo(x float64, y float64)

MoveTo provides a mock function with given fields: x, y

func (*Pdf) MultiCell

func (_m *Pdf) MultiCell(w float64, h float64, txtStr string, borderStr string, alignStr string, fill bool)

MultiCell provides a mock function with given fields: w, h, txtStr, borderStr, alignStr, fill

func (*Pdf) Ok

func (_m *Pdf) Ok() bool

Ok provides a mock function with given fields:

func (*Pdf) OpenLayerPane

func (_m *Pdf) OpenLayerPane()

OpenLayerPane provides a mock function with given fields:

func (*Pdf) Output

func (_m *Pdf) Output(w io.Writer) error

Output provides a mock function with given fields: w

func (*Pdf) OutputAndClose

func (_m *Pdf) OutputAndClose(w io.WriteCloser) error

OutputAndClose provides a mock function with given fields: w

func (*Pdf) OutputFileAndClose

func (_m *Pdf) OutputFileAndClose(fileStr string) error

OutputFileAndClose provides a mock function with given fields: fileStr

func (*Pdf) PageCount

func (_m *Pdf) PageCount() int

PageCount provides a mock function with given fields:

func (*Pdf) PageNo

func (_m *Pdf) PageNo() int

PageNo provides a mock function with given fields:

func (*Pdf) PageSize

func (_m *Pdf) PageSize(pageNum int) (float64, float64, string)

PageSize provides a mock function with given fields: pageNum

func (*Pdf) PointConvert

func (_m *Pdf) PointConvert(pt float64) float64

PointConvert provides a mock function with given fields: pt

func (*Pdf) PointToUnitConvert

func (_m *Pdf) PointToUnitConvert(pt float64) float64

PointToUnitConvert provides a mock function with given fields: pt

func (*Pdf) Polygon

func (_m *Pdf) Polygon(points []gofpdf.PointType, styleStr string)

Polygon provides a mock function with given fields: points, styleStr

func (*Pdf) RadialGradient

func (_m *Pdf) RadialGradient(x float64, y float64, w float64, h float64, r1 int, g1 int, b1 int, r2 int, g2 int, b2 int, x1 float64, y1 float64, x2 float64, y2 float64, r float64)

RadialGradient provides a mock function with given fields: x, y, w, h, r1, g1, b1, r2, g2, b2, x1, y1, x2, y2, r

func (*Pdf) RawWriteBuf

func (_m *Pdf) RawWriteBuf(r io.Reader)

RawWriteBuf provides a mock function with given fields: r

func (*Pdf) RawWriteStr

func (_m *Pdf) RawWriteStr(str string)

RawWriteStr provides a mock function with given fields: str

func (*Pdf) Rect

func (_m *Pdf) Rect(x float64, y float64, w float64, h float64, styleStr string)

Rect provides a mock function with given fields: x, y, w, h, styleStr

func (*Pdf) RegisterAlias

func (_m *Pdf) RegisterAlias(alias string, replacement string)

RegisterAlias provides a mock function with given fields: alias, replacement

func (*Pdf) RegisterImage

func (_m *Pdf) RegisterImage(fileStr string, tp string) *gofpdf.ImageInfoType

RegisterImage provides a mock function with given fields: fileStr, tp

func (*Pdf) RegisterImageOptions

func (_m *Pdf) RegisterImageOptions(fileStr string, options gofpdf.ImageOptions) *gofpdf.ImageInfoType

RegisterImageOptions provides a mock function with given fields: fileStr, options

func (*Pdf) RegisterImageOptionsReader

func (_m *Pdf) RegisterImageOptionsReader(imgName string, options gofpdf.ImageOptions, r io.Reader) *gofpdf.ImageInfoType

RegisterImageOptionsReader provides a mock function with given fields: imgName, options, r

func (*Pdf) RegisterImageReader

func (_m *Pdf) RegisterImageReader(imgName string, tp string, r io.Reader) *gofpdf.ImageInfoType

RegisterImageReader provides a mock function with given fields: imgName, tp, r

func (*Pdf) SVGBasicWrite

func (_m *Pdf) SVGBasicWrite(sb *gofpdf.SVGBasicType, scale float64)

SVGBasicWrite provides a mock function with given fields: sb, scale

func (*Pdf) SetAcceptPageBreakFunc

func (_m *Pdf) SetAcceptPageBreakFunc(fnc func() bool)

SetAcceptPageBreakFunc provides a mock function with given fields: fnc

func (*Pdf) SetAlpha

func (_m *Pdf) SetAlpha(alpha float64, blendModeStr string)

SetAlpha provides a mock function with given fields: alpha, blendModeStr

func (*Pdf) SetAuthor

func (_m *Pdf) SetAuthor(authorStr string, isUTF8 bool)

SetAuthor provides a mock function with given fields: authorStr, isUTF8

func (*Pdf) SetAutoPageBreak

func (_m *Pdf) SetAutoPageBreak(auto bool, margin float64)

SetAutoPageBreak provides a mock function with given fields: auto, margin

func (*Pdf) SetCatalogSort

func (_m *Pdf) SetCatalogSort(flag bool)

SetCatalogSort provides a mock function with given fields: flag

func (*Pdf) SetCellMargin

func (_m *Pdf) SetCellMargin(margin float64)

SetCellMargin provides a mock function with given fields: margin

func (*Pdf) SetCompression

func (_m *Pdf) SetCompression(compress bool)

SetCompression provides a mock function with given fields: compress

func (*Pdf) SetCreationDate

func (_m *Pdf) SetCreationDate(tm time.Time)

SetCreationDate provides a mock function with given fields: tm

func (*Pdf) SetCreator

func (_m *Pdf) SetCreator(creatorStr string, isUTF8 bool)

SetCreator provides a mock function with given fields: creatorStr, isUTF8

func (*Pdf) SetDashPattern

func (_m *Pdf) SetDashPattern(dashArray []float64, dashPhase float64)

SetDashPattern provides a mock function with given fields: dashArray, dashPhase

func (*Pdf) SetDisplayMode

func (_m *Pdf) SetDisplayMode(zoomStr string, layoutStr string)

SetDisplayMode provides a mock function with given fields: zoomStr, layoutStr

func (*Pdf) SetDrawColor

func (_m *Pdf) SetDrawColor(r int, g int, b int)

SetDrawColor provides a mock function with given fields: r, g, b

func (*Pdf) SetDrawSpotColor

func (_m *Pdf) SetDrawSpotColor(nameStr string, tint byte)

SetDrawSpotColor provides a mock function with given fields: nameStr, tint

func (*Pdf) SetError

func (_m *Pdf) SetError(err error)

SetError provides a mock function with given fields: err

func (*Pdf) SetErrorf

func (_m *Pdf) SetErrorf(fmtStr string, args ...interface{})

SetErrorf provides a mock function with given fields: fmtStr, args

func (*Pdf) SetFillColor

func (_m *Pdf) SetFillColor(r int, g int, b int)

SetFillColor provides a mock function with given fields: r, g, b

func (*Pdf) SetFillSpotColor

func (_m *Pdf) SetFillSpotColor(nameStr string, tint byte)

SetFillSpotColor provides a mock function with given fields: nameStr, tint

func (*Pdf) SetFont

func (_m *Pdf) SetFont(familyStr string, styleStr string, size float64)

SetFont provides a mock function with given fields: familyStr, styleStr, size

func (*Pdf) SetFontLoader

func (_m *Pdf) SetFontLoader(loader gofpdf.FontLoader)

SetFontLoader provides a mock function with given fields: loader

func (*Pdf) SetFontLocation

func (_m *Pdf) SetFontLocation(fontDirStr string)

SetFontLocation provides a mock function with given fields: fontDirStr

func (*Pdf) SetFontSize

func (_m *Pdf) SetFontSize(size float64)

SetFontSize provides a mock function with given fields: size

func (*Pdf) SetFontStyle

func (_m *Pdf) SetFontStyle(styleStr string)

SetFontStyle provides a mock function with given fields: styleStr

func (*Pdf) SetFontUnitSize

func (_m *Pdf) SetFontUnitSize(size float64)

SetFontUnitSize provides a mock function with given fields: size

func (*Pdf) SetFooterFunc

func (_m *Pdf) SetFooterFunc(fnc func())

SetFooterFunc provides a mock function with given fields: fnc

func (*Pdf) SetFooterFuncLpi

func (_m *Pdf) SetFooterFuncLpi(fnc func(bool))

SetFooterFuncLpi provides a mock function with given fields: fnc

func (*Pdf) SetHeaderFunc

func (_m *Pdf) SetHeaderFunc(fnc func())

SetHeaderFunc provides a mock function with given fields: fnc

func (*Pdf) SetHeaderFuncMode

func (_m *Pdf) SetHeaderFuncMode(fnc func(), homeMode bool)

SetHeaderFuncMode provides a mock function with given fields: fnc, homeMode

func (*Pdf) SetHomeXY

func (_m *Pdf) SetHomeXY()

SetHomeXY provides a mock function with given fields:

func (*Pdf) SetJavascript

func (_m *Pdf) SetJavascript(script string)

SetJavascript provides a mock function with given fields: script

func (*Pdf) SetKeywords

func (_m *Pdf) SetKeywords(keywordsStr string, isUTF8 bool)

SetKeywords provides a mock function with given fields: keywordsStr, isUTF8

func (*Pdf) SetLeftMargin

func (_m *Pdf) SetLeftMargin(margin float64)

SetLeftMargin provides a mock function with given fields: margin

func (*Pdf) SetLineCapStyle

func (_m *Pdf) SetLineCapStyle(styleStr string)

SetLineCapStyle provides a mock function with given fields: styleStr

func (*Pdf) SetLineJoinStyle

func (_m *Pdf) SetLineJoinStyle(styleStr string)

SetLineJoinStyle provides a mock function with given fields: styleStr

func (*Pdf) SetLineWidth

func (_m *Pdf) SetLineWidth(width float64)

SetLineWidth provides a mock function with given fields: width

func (_m *Pdf) SetLink(link int, y float64, page int)

SetLink provides a mock function with given fields: link, y, page

func (*Pdf) SetMargins

func (_m *Pdf) SetMargins(left float64, top float64, right float64)

SetMargins provides a mock function with given fields: left, top, right

func (*Pdf) SetPage

func (_m *Pdf) SetPage(pageNum int)

SetPage provides a mock function with given fields: pageNum

func (*Pdf) SetPageBox

func (_m *Pdf) SetPageBox(t string, x float64, y float64, wd float64, ht float64)

SetPageBox provides a mock function with given fields: t, x, y, wd, ht

func (*Pdf) SetPageBoxRec

func (_m *Pdf) SetPageBoxRec(t string, pb gofpdf.PageBox)

SetPageBoxRec provides a mock function with given fields: t, pb

func (*Pdf) SetProtection

func (_m *Pdf) SetProtection(actionFlag byte, userPassStr string, ownerPassStr string)

SetProtection provides a mock function with given fields: actionFlag, userPassStr, ownerPassStr

func (*Pdf) SetRightMargin

func (_m *Pdf) SetRightMargin(margin float64)

SetRightMargin provides a mock function with given fields: margin

func (*Pdf) SetSubject

func (_m *Pdf) SetSubject(subjectStr string, isUTF8 bool)

SetSubject provides a mock function with given fields: subjectStr, isUTF8

func (*Pdf) SetTextColor

func (_m *Pdf) SetTextColor(r int, g int, b int)

SetTextColor provides a mock function with given fields: r, g, b

func (*Pdf) SetTextSpotColor

func (_m *Pdf) SetTextSpotColor(nameStr string, tint byte)

SetTextSpotColor provides a mock function with given fields: nameStr, tint

func (*Pdf) SetTitle

func (_m *Pdf) SetTitle(titleStr string, isUTF8 bool)

SetTitle provides a mock function with given fields: titleStr, isUTF8

func (*Pdf) SetTopMargin

func (_m *Pdf) SetTopMargin(margin float64)

SetTopMargin provides a mock function with given fields: margin

func (*Pdf) SetX

func (_m *Pdf) SetX(x float64)

SetX provides a mock function with given fields: x

func (*Pdf) SetXY

func (_m *Pdf) SetXY(x float64, y float64)

SetXY provides a mock function with given fields: x, y

func (*Pdf) SetXmpMetadata

func (_m *Pdf) SetXmpMetadata(xmpStream []byte)

SetXmpMetadata provides a mock function with given fields: xmpStream

func (*Pdf) SetY

func (_m *Pdf) SetY(y float64)

SetY provides a mock function with given fields: y

func (*Pdf) SplitLines

func (_m *Pdf) SplitLines(txt []byte, w float64) [][]byte

SplitLines provides a mock function with given fields: txt, w

func (*Pdf) String

func (_m *Pdf) String() string

String provides a mock function with given fields:

func (*Pdf) Text

func (_m *Pdf) Text(x float64, y float64, txtStr string)

TextHelper provides a mock function with given fields: x, y, txtStr

func (*Pdf) Transform

func (_m *Pdf) Transform(tm gofpdf.TransformMatrix)

Transform provides a mock function with given fields: tm

func (*Pdf) TransformBegin

func (_m *Pdf) TransformBegin()

TransformBegin provides a mock function with given fields:

func (*Pdf) TransformEnd

func (_m *Pdf) TransformEnd()

TransformEnd provides a mock function with given fields:

func (*Pdf) TransformMirrorHorizontal

func (_m *Pdf) TransformMirrorHorizontal(x float64)

TransformMirrorHorizontal provides a mock function with given fields: x

func (*Pdf) TransformMirrorLine

func (_m *Pdf) TransformMirrorLine(angle float64, x float64, y float64)

TransformMirrorLine provides a mock function with given fields: angle, x, y

func (*Pdf) TransformMirrorPoint

func (_m *Pdf) TransformMirrorPoint(x float64, y float64)

TransformMirrorPoint provides a mock function with given fields: x, y

func (*Pdf) TransformMirrorVertical

func (_m *Pdf) TransformMirrorVertical(y float64)

TransformMirrorVertical provides a mock function with given fields: y

func (*Pdf) TransformRotate

func (_m *Pdf) TransformRotate(angle float64, x float64, y float64)

TransformRotate provides a mock function with given fields: angle, x, y

func (*Pdf) TransformScale

func (_m *Pdf) TransformScale(scaleWd float64, scaleHt float64, x float64, y float64)

TransformScale provides a mock function with given fields: scaleWd, scaleHt, x, y

func (*Pdf) TransformScaleX

func (_m *Pdf) TransformScaleX(scaleWd float64, x float64, y float64)

TransformScaleX provides a mock function with given fields: scaleWd, x, y

func (*Pdf) TransformScaleXY

func (_m *Pdf) TransformScaleXY(s float64, x float64, y float64)

TransformScaleXY provides a mock function with given fields: s, x, y

func (*Pdf) TransformScaleY

func (_m *Pdf) TransformScaleY(scaleHt float64, x float64, y float64)

TransformScaleY provides a mock function with given fields: scaleHt, x, y

func (*Pdf) TransformSkew

func (_m *Pdf) TransformSkew(angleX float64, angleY float64, x float64, y float64)

TransformSkew provides a mock function with given fields: angleX, angleY, x, y

func (*Pdf) TransformSkewX

func (_m *Pdf) TransformSkewX(angleX float64, x float64, y float64)

TransformSkewX provides a mock function with given fields: angleX, x, y

func (*Pdf) TransformSkewY

func (_m *Pdf) TransformSkewY(angleY float64, x float64, y float64)

TransformSkewY provides a mock function with given fields: angleY, x, y

func (*Pdf) TransformTranslate

func (_m *Pdf) TransformTranslate(tx float64, ty float64)

TransformTranslate provides a mock function with given fields: tx, ty

func (*Pdf) TransformTranslateX

func (_m *Pdf) TransformTranslateX(tx float64)

TransformTranslateX provides a mock function with given fields: tx

func (*Pdf) TransformTranslateY

func (_m *Pdf) TransformTranslateY(ty float64)

TransformTranslateY provides a mock function with given fields: ty

func (*Pdf) UnicodeTranslatorFromDescriptor

func (_m *Pdf) UnicodeTranslatorFromDescriptor(cpStr string) func(string) string

UnicodeTranslatorFromDescriptor provides a mock function with given fields: cpStr

func (*Pdf) UnitToPointConvert

func (_m *Pdf) UnitToPointConvert(u float64) float64

UnitToPointConvert provides a mock function with given fields: u

func (*Pdf) UseTemplate

func (_m *Pdf) UseTemplate(t gofpdf.Template)

UseTemplate provides a mock function with given fields: t

func (*Pdf) UseTemplateScaled

func (_m *Pdf) UseTemplateScaled(t gofpdf.Template, corner gofpdf.PointType, size gofpdf.SizeType)

UseTemplateScaled provides a mock function with given fields: t, corner, size

func (*Pdf) Write

func (_m *Pdf) Write(h float64, txtStr string)

Write provides a mock function with given fields: h, txtStr

func (*Pdf) WriteAligned

func (_m *Pdf) WriteAligned(width float64, lineHeight float64, textStr string, alignStr string)

WriteAligned provides a mock function with given fields: width, lineHeight, textStr, alignStr

func (*Pdf) WriteLinkID

func (_m *Pdf) WriteLinkID(h float64, displayStr string, linkID int)

WriteLinkID provides a mock function with given fields: h, displayStr, linkID

func (*Pdf) WriteLinkString

func (_m *Pdf) WriteLinkString(h float64, displayStr string, targetStr string)

WriteLinkString provides a mock function with given fields: h, displayStr, targetStr

func (*Pdf) Writef

func (_m *Pdf) Writef(h float64, fmtStr string, args ...interface{})

Writef provides a mock function with given fields: h, fmtStr, args

type Signature

type Signature struct {
	mock.Mock
}

Signature is an autogenerated mock type for the Signature type

func (*Signature) AddSpaceFor

func (_m *Signature) AddSpaceFor(label string, cell internal.Cell, textProp props.Text)

AddSpaceFor provides a mock function with given fields: label, cell, textProp

type TableList added in v0.28.0

type TableList struct {
	mock.Mock
}

TableList is an autogenerated mock type for the TableList type

func (*TableList) BindGrid added in v0.28.0

func (_m *TableList) BindGrid(part internal.MarotoGridPart)

BindGrid provides a mock function with given fields: part

func (*TableList) Create added in v0.28.0

func (_m *TableList) Create(header []string, contents [][]string, prop ...props.TableList)

Create provides a mock function with given fields: header, contents, prop

type Text

type Text struct {
	mock.Mock
}

Text is an autogenerated mock type for the Text type

func (*Text) Add

func (_m *Text) Add(text string, cell internal.Cell, textProp props.Text)

Add provides a mock function with given fields: text, cell, textProp

func (*Text) GetLinesQuantity added in v0.28.0

func (_m *Text) GetLinesQuantity(text string, fontFamily props.Text, colWidth float64) int

GetLinesQuantity provides a mock function with given fields: text, fontFamily, colWidth

Jump to

Keyboard shortcuts

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