MCPcopy Create free account
hub / github.com/andlabs/ui / CloseFigure

Method CloseFigure

draw.go:133–135  ·  view source on GitHub ↗

CloseFigure draws a line segment from the current point of the current figure of the DrawPath back to its initial point. After calling this, the current figure is over and you must either start a new figure or end the DrawPath. If this is not called and you start a new figure or end the DrawPath, th

()

Source from the content-addressed store, hash-verified

131// have this closing line segment added to it (but the figure will still
132// be over).
133func (p *DrawPath) CloseFigure() {
134 C.uiDrawPathCloseFigure(p.p)
135}
136
137// AddRectangle creates a new figure in the DrawPath that consists
138// entirely of a rectangle whose top-left corner is at the given point

Callers 1

constructGraphFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected