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

Method AddRectangle

draw.go:142–144  ·  view source on GitHub ↗

AddRectangle creates a new figure in the DrawPath that consists entirely of a rectangle whose top-left corner is at the given point and whose size is the given size. The rectangle is a closed figure; you must either start a new figure or end the Path after calling this method.

(x float64, y float64, width float64, height float64)

Source from the content-addressed store, hash-verified

140// you must either start a new figure or end the Path after calling
141// this method.
142func (p *DrawPath) AddRectangle(x float64, y float64, width float64, height float64) {
143 C.uiDrawPathAddRectangle(p.p, C.double(x), C.double(y), C.double(width), C.double(height))
144}
145
146// End ends the current DrawPath. You cannot add figures to a
147// DrawPath that has been ended. You cannot draw with a

Callers 1

DrawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected