MCPcopy Create free account
hub / github.com/cogentcore/core / Dasher

Struct Dasher

paint/raster/dash.go:17–29  ·  view source on GitHub ↗

Dasher struct extends the Stroker and can draw dashed lines with end capping

Source from the content-addressed store, hash-verified

15// Dasher struct extends the Stroker and can draw
16// dashed lines with end capping
17type Dasher struct {
18 Stroker
19 Dashes []fixed.Int26_6
20 DashPlace int
21 FirstDashIsGap bool
22 DashIsGap bool
23 DeltaDash fixed.Int26_6
24 DashOffset fixed.Int26_6
25
26 // Sgm allows us to switch between dashing
27 // and non-dashing rasterizers in the SetStroke function.
28 Sgm Raster
29}
30
31// NewDasher returns a Dasher ptr with default values.
32// A Dasher has all of the capabilities of a Stroker, Filler, and Scanner, plus the ability

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected