コード例 #1
0
ファイル: cairo.go プロジェクト: raichu/gotk3
// ResetClip is a wrapper around cairo_reset_clip().
func (v *Context) ResetClip() {
	C.cairo_reset_clip(v.native())
}
コード例 #2
0
ファイル: surface.go プロジェクト: ungerik/go-cairo
func (self *Surface) ResetClip() {
	C.cairo_reset_clip(self.context)
}
コード例 #3
0
ファイル: cairo.go プロジェクト: jimmyfrasche/cairo
//ResetClip resets the current clip region to its original, unrestricted state.
//That is, set the clip region to an infinitely large shape containing
//the target surface.
//Equivalently, one can imagine the clip region being reset to the exact bounds
//of the target surface.
//
//Note that code meant to be reusable should not call ResetClip as it will
//cause results unexpected by higher-level code which calls ResetClip.
//Consider using Save and Restore around Clip as a more robust means of
//temporarily restricting the clip region.
//
//Originally cairo_reset_clip.
func (c *Context) ResetClip() *Context {
	C.cairo_reset_clip(c.c)
	return c
}