context

package
v3.0.0-...-55e877b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Push()
	Pop()
	Matrix() _ae.Matrix
	SetMatrix(_ce _ae.Matrix)
	Translate(_cb, _af float64)
	Scale(_ef, _bf float64)
	Rotate(_gf float64)
	MoveTo(_dc, _ca float64)
	LineTo(_cef, _cd float64)
	CubicTo(_df, _ea, _dg, _ggc, _eb, _afa float64)
	QuadraticTo(_ga, _fe, _fg, _fec float64)
	NewSubPath()
	ClosePath()
	ClearPath()
	Clip()
	ClipPreserve()
	ResetClip()
	LineWidth() float64
	SetLineWidth(_bd float64)
	SetLineCap(_ge LineCap)
	SetLineJoin(_cda LineJoin)
	SetDash(_aee ...float64)
	SetDashOffset(_fd float64)
	Fill()
	FillPreserve()
	Stroke()
	StrokePreserve()
	SetRGBA(_fgf, _cg, _gad, _aef float64)
	SetFillRGBA(_fb, _fda, _cc, _fbe float64)
	SetFillStyle(_eag Pattern)
	SetFillRule(_ccc FillRule)
	SetStrokeRGBA(_bg, _fbf, _eda, _fge float64)
	SetStrokeStyle(_be Pattern)
	FillPattern() Pattern
	StrokePattern() Pattern
	TextState() *TextState
	DrawString(_eg string, _bb _gg.Face, _cdaf, _aa float64)
	MeasureString(_feg string, _ff _gg.Face) (_aab, _cde float64)
	DrawRectangle(_fbc, _db, _dba, _fa float64)
	DrawImage(_bed _d.Image, _eff, _cdd int)
	DrawImageAnchored(_baa _d.Image, _fdb, _ee int, _gea, _fag float64)
	Height() int
	Width() int
}

type FillRule

type FillRule int
const (
	FillRuleWinding FillRule = iota
	FillRuleEvenOdd
)

type Gradient

type Gradient interface {
	Pattern
	AddColorStop(_c float64, _f _g.Color)
}

type LineCap

type LineCap int
const (
	LineCapRound LineCap = iota
	LineCapButt
	LineCapSquare
)

type LineJoin

type LineJoin int
const (
	LineJoinRound LineJoin = iota
	LineJoinBevel
)

type Pattern

type Pattern interface{ ColorAt(_ab, _ed int) _g.Color }

type TextFont

type TextFont struct {
	Font *_ba.PdfFont
	Size float64
	// contains filtered or unexported fields
}

func NewTextFont

func NewTextFont(font *_ba.PdfFont, size float64) (*TextFont, error)

func NewTextFontFromPath

func NewTextFontFromPath(filePath string, size float64) (*TextFont, error)

func (*TextFont) BytesToCharcodes

func (_bbc *TextFont) BytesToCharcodes(data []byte) []_e.CharCode

func (*TextFont) CharcodeToRunes

func (_dad *TextFont) CharcodeToRunes(charcode _e.CharCode) (_e.CharCode, []rune)

func (*TextFont) GetCharMetrics

func (_dcb *TextFont) GetCharMetrics(code _e.CharCode) (float64, float64, bool)

func (*TextFont) NewFace

func (_dfc *TextFont) NewFace(size float64) _gg.Face

func (*TextFont) WithSize

func (_dbd *TextFont) WithSize(size float64, originalFont *_ba.PdfFont) *TextFont

type TextRenderingMode

type TextRenderingMode int
const (
	TextRenderingModeFill TextRenderingMode = iota
	TextRenderingModeStroke
	TextRenderingModeFillStroke
	TextRenderingModeInvisible
	TextRenderingModeFillClip
	TextRenderingModeStrokeClip
	TextRenderingModeFillStrokeClip
	TextRenderingModeClip
)

type TextState

type TextState struct {
	Tc          float64
	Tw          float64
	Th          float64
	Tl          float64
	Tf          *TextFont
	Ts          float64
	Tm          _ae.Matrix
	Tlm         _ae.Matrix
	Tr          TextRenderingMode
	GlobalScale float64
}

func NewTextState

func NewTextState() TextState

func (*TextState) ProcDQ

func (_gadf *TextState) ProcDQ(data []byte, aw, ac float64, ctx Context)

func (*TextState) ProcQ

func (_ffg *TextState) ProcQ(data []byte, ctx Context)

func (*TextState) ProcTD

func (_dcbb *TextState) ProcTD(tx, ty float64)

func (*TextState) ProcTStar

func (_gab *TextState) ProcTStar()

func (*TextState) ProcTd

func (_cdac *TextState) ProcTd(tx, ty float64)

func (*TextState) ProcTf

func (_gfa *TextState) ProcTf(font *TextFont)

func (*TextState) ProcTj

func (_gag *TextState) ProcTj(data []byte, ctx Context)

func (*TextState) ProcTm

func (_aec *TextState) ProcTm(a, b, c, d, e, f float64)

func (*TextState) Reset

func (_bfc *TextState) Reset()

func (*TextState) Translate

func (_aeed *TextState) Translate(tx, ty float64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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