Documentation ¶
Overview ¶
Package tracer provides a function to dump the current layout tree, which may be used in debug mode.
Index ¶
- func FormatMaybeFloat(v properties.MaybeFloat) string
- type Drawer
- func (dr Drawer) AddExternalLink(x, y, w, h fl, url string)
- func (dr Drawer) AddFileAnnotation(x, y, w, h fl, id string)
- func (dr Drawer) AddFont(backend.Font, []byte) *backend.FontChars
- func (dr Drawer) AddInternalLink(x, y, w, h fl, anchorName string)
- func (dr *Drawer) AddPage(left, top, right, bottom fl) backend.Page
- func (dr Drawer) Clip(evenOdd bool)
- func (dr Drawer) ClosePath()
- func (dr Drawer) CreateAnchors(anchors [][]backend.Anchor)
- func (dr Drawer) CubicTo(x1, y1, x2, y2, x3, y3 fl)
- func (dr Drawer) DrawGradient(gradient backend.GradientLayout, width, height fl)
- func (dr Drawer) DrawRasterImage(img backend.RasterImage, width, height fl)
- func (dr Drawer) DrawText(text []backend.TextDrawing)
- func (dr Drawer) DrawWithOpacity(opacity fl, group backend.Canvas)
- func (dr Drawer) EmbedFile(id string, a backend.Attachment)
- func (dr Drawer) GetBoundingBox() (left, top, right, bottom fl)
- func (dr Drawer) GetTransform() matrix.Transform
- func (dr Drawer) LineTo(x fl, y fl)
- func (dr Drawer) MoveTo(x fl, y fl)
- func (dr *Drawer) NewGroup(x, y, width, height fl) backend.Canvas
- func (dr *Drawer) OnNewStack(f func())
- func (dr Drawer) Paint(op backend.PaintOp)
- func (dr Drawer) Rectangle(x fl, y fl, width fl, height fl)
- func (dr Drawer) SetAlpha(alpha fl, stroke bool)
- func (dr Drawer) SetAlphaMask(mask backend.Canvas)
- func (dr Drawer) SetAttachments(as []backend.Attachment)
- func (dr Drawer) SetAuthors(authors []string)
- func (dr Drawer) SetBleedBox(left, top, right, bottom fl)
- func (dr Drawer) SetBlendingMode(mode string)
- func (dr Drawer) SetBookmarks([]backend.BookmarkNode)
- func (dr Drawer) SetBoundingBox(left, top, right, bottom fl)
- func (dr Drawer) SetColorPattern(backend.Canvas, fl, fl, matrix.Transform, bool)
- func (dr Drawer) SetColorRgba(color parser.RGBA, stroke bool)
- func (dr Drawer) SetCreator(creator string)
- func (dr Drawer) SetDash(dashes []fl, offset fl)
- func (dr Drawer) SetDateCreation(d time.Time)
- func (dr Drawer) SetDateModification(d time.Time)
- func (dr Drawer) SetDescription(description string)
- func (dr Drawer) SetKeywords(keywords []string)
- func (dr Drawer) SetLineWidth(width fl)
- func (dr Drawer) SetMediaBox(left, top, right, bottom fl)
- func (dr Drawer) SetProducer(producer string)
- func (dr Drawer) SetStrokeOptions(opt backend.StrokeOptions)
- func (dr Drawer) SetTextPaint(p backend.PaintOp)
- func (dr Drawer) SetTitle(title string)
- func (dr Drawer) SetTrimBox(left, top, right, bottom fl)
- func (dr Drawer) State() backend.GraphicState
- func (dr Drawer) Transform(mt matrix.Transform)
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatMaybeFloat ¶
func FormatMaybeFloat(v properties.MaybeFloat) string
Types ¶
type Drawer ¶ added in v0.0.3
type Drawer struct {
// contains filtered or unexported fields
}
func NewDrawerFile ¶ added in v0.0.3
NewDrawerFile panics if an error occurs.
func NewDrawerNoOp ¶ added in v0.0.3
func NewDrawerNoOp() *Drawer
func (Drawer) AddExternalLink ¶ added in v0.0.3
func (Drawer) AddFileAnnotation ¶ added in v0.0.3
func (Drawer) AddInternalLink ¶ added in v0.0.3
func (Drawer) CreateAnchors ¶ added in v0.0.3
func (Drawer) DrawGradient ¶ added in v0.0.3
func (dr Drawer) DrawGradient(gradient backend.GradientLayout, width, height fl)
func (Drawer) DrawRasterImage ¶ added in v0.0.3
func (dr Drawer) DrawRasterImage(img backend.RasterImage, width, height fl)
func (Drawer) DrawText ¶ added in v0.0.3
func (dr Drawer) DrawText(text []backend.TextDrawing)
func (Drawer) DrawWithOpacity ¶ added in v0.0.3
func (Drawer) EmbedFile ¶ added in v0.0.3
func (dr Drawer) EmbedFile(id string, a backend.Attachment)
func (Drawer) GetBoundingBox ¶ added in v0.0.10
func (dr Drawer) GetBoundingBox() (left, top, right, bottom fl)
func (Drawer) GetTransform ¶ added in v0.0.3
func (*Drawer) OnNewStack ¶ added in v0.0.3
func (dr *Drawer) OnNewStack(f func())
func (Drawer) Rectangle ¶ added in v0.0.3
func (dr Drawer) Rectangle(x fl, y fl, width fl, height fl)
func (Drawer) SetAlphaMask ¶ added in v0.0.3
func (Drawer) SetAttachments ¶ added in v0.0.3
func (dr Drawer) SetAttachments(as []backend.Attachment)
func (Drawer) SetAuthors ¶ added in v0.0.3
func (Drawer) SetBleedBox ¶ added in v0.0.3
func (dr Drawer) SetBleedBox(left, top, right, bottom fl)
func (Drawer) SetBlendingMode ¶ added in v0.0.3
func (Drawer) SetBookmarks ¶ added in v0.0.3
func (dr Drawer) SetBookmarks([]backend.BookmarkNode)
func (Drawer) SetBoundingBox ¶ added in v0.0.10
func (dr Drawer) SetBoundingBox(left, top, right, bottom fl)
func (Drawer) SetColorPattern ¶ added in v0.0.3
func (Drawer) SetColorRgba ¶ added in v0.0.3
func (Drawer) SetCreator ¶ added in v0.0.3
func (Drawer) SetDateCreation ¶ added in v0.0.3
func (Drawer) SetDateModification ¶ added in v0.0.3
func (Drawer) SetDescription ¶ added in v0.0.3
func (Drawer) SetKeywords ¶ added in v0.0.3
func (Drawer) SetLineWidth ¶ added in v0.0.3
func (dr Drawer) SetLineWidth(width fl)
func (Drawer) SetMediaBox ¶ added in v0.0.3
func (dr Drawer) SetMediaBox(left, top, right, bottom fl)
func (Drawer) SetProducer ¶ added in v0.0.3
func (Drawer) SetStrokeOptions ¶ added in v0.0.3
func (dr Drawer) SetStrokeOptions(opt backend.StrokeOptions)
func (Drawer) SetTextPaint ¶ added in v0.0.3
func (Drawer) SetTrimBox ¶ added in v0.0.3
func (dr Drawer) SetTrimBox(left, top, right, bottom fl)
func (Drawer) State ¶ added in v0.0.3
func (dr Drawer) State() backend.GraphicState
Click to show internal directories.
Click to hide internal directories.