Esempio n. 1
0
func (self *Surface) SetFallbackResolution(xPixelPerInch, yPixelPerInch float64) {
	C.cairo_surface_set_fallback_resolution(self.surface,
		C.double(xPixelPerInch), C.double(yPixelPerInch))
}
Esempio n. 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))
}
Esempio n. 3
0
// 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))
}
Esempio n. 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()
}