예제 #1
0
파일: surface.go 프로젝트: ungerik/go-cairo
func (self *Surface) NewSubPath() {
	C.cairo_new_sub_path(self.context)
}
예제 #2
0
파일: cairo.go 프로젝트: jimmyfrasche/cairo
//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
}