Lines Matching defs:Paint
101 func (c *Canvas) DrawPaint(paint *Paint) {
102 C.sk_canvas_draw_paint(c.ptr, paint.ptr)
105 func (c *Canvas) DrawOval(rect *Rect, paint *Paint) {
106 // C.sk_canvas_draw_oval(c.ptr, (*C.sk_rect_t)(unsafe.Pointer(rect)), (*C.sk_paint_t)(paint.ptr))
107 C.sk_canvas_draw_oval(c.ptr, rect.cPointer(), paint.ptr)
110 func (c *Canvas) DrawRect(rect *Rect, paint *Paint) {
111 // C.sk_canvas_draw_rect(c.ptr, (*C.sk_rect_t)(unsafe.Pointer(rect)), (*C.sk_paint_t)(paint.ptr))
112 C.sk_canvas_draw_rect(c.ptr, rect.cPointer(), paint.ptr)
115 func (c *Canvas) DrawPath(path *Path, paint *Paint) {
116 // C.sk_canvas_draw_path(c.ptr, (*C.sk_path_t)(path.ptr), (*C.sk_paint_t)(paint.ptr))
117 C.sk_canvas_draw_path(c.ptr, path.ptr, paint.ptr)
121 // Paint
123 type Paint struct {
127 func NewPaint() *Paint {
128 ret := &Paint{ptr: C.sk_paint_new()}
129 runtime.SetFinalizer(ret, func(p *Paint) {
135 func (p *Paint) SetColor(color Color) {
139 func (p *Paint) SetAntiAlias(antiAlias bool) {
143 func (p *Paint) SetStroke(val bool) {
147 func (p *Paint) SetStrokeWidth(width float32) {