Esempio n. 1
0
// GetFallbackResolution is a wrapper around
// cairo_surface_get_fallback_resolution().
func (v *Surface) GetFallbackResolution() (xPPI, yPPI float64) {
	var x, y C.double
	C.cairo_surface_get_fallback_resolution(v.native(), &x, &y)
	return float64(x), float64(y)
}
Esempio n. 2
0
func (self *Surface) GetFallbackResolution() (xPixelPerInch, yPixelPerInch float64) {
	C.cairo_surface_get_fallback_resolution(self.surface,
		(*C.double)(&xPixelPerInch), (*C.double)(&yPixelPerInch))
	return xPixelPerInch, yPixelPerInch
}
Esempio n. 3
0
func fallbackResolution(s *C.cairo_surface_t) (xppi, yppi float64) {
	var x, y C.double
	C.cairo_surface_get_fallback_resolution(s, &x, &y)
	return float64(x), float64(y)
}