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)
| 140 | // you must either start a new figure or end the Path after calling |
| 141 | // this method. |
| 142 | func (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 |