Esempio n. 1
0
func (self *Surface) NewSubPath() {
	C.cairo_new_sub_path(self.context)
}
Esempio n. 2
0
//NewSubPath begins a new sub-path.
//The existing path is not affected, but the current point is cleared.
//
//In many cases, this is not needed since new sub-paths are frequently started
//with MoveTo.
//
//NewSubPath is particularly useful when beginning a new sub-path with one of the
//Arc calls, as, in this case, it is no longer necessary to manually computer the
//arc's inital coordinates for use with MoveTo.
//
//Originally cairo_new_sub_path.
func (c *Context) NewSubPath() *Context {
	C.cairo_new_sub_path(c.c)
	return c
}