예제 #1
0
파일: surface.go 프로젝트: ungerik/go-cairo
func (self *Surface) SetFallbackResolution(xPixelPerInch, yPixelPerInch float64) {
	C.cairo_surface_set_fallback_resolution(self.surface,
		C.double(xPixelPerInch), C.double(yPixelPerInch))
}
예제 #2
0
func setFallbackResolution(s *C.cairo_surface_t, xppi, yppi float64) {
	C.cairo_surface_set_fallback_resolution(s, C.double(xppi), C.double(yppi))
}
예제 #3
0
파일: cairo.go 프로젝트: raichu/gotk3
// SetFallbackResolution is a wrapper around
// cairo_surface_set_fallback_resolution().
func (v *Surface) SetFallbackResolution(xPPI, yPPI float64) {
	C.cairo_surface_set_fallback_resolution(v.native(), C.double(xPPI),
		C.double(yPPI))
}
예제 #4
0
func (s *CairoSurface) SetFallbackResolution(xPPI, yPPI float64) error {
	C.cairo_surface_set_fallback_resolution(s.nativePointer(), C.double(xPPI), C.double(yPPI))
	return s.status()
}