示例#1
0
func ErrorUnderlinePath(cr0 *cairo.Context, x0 float64, y0 float64, width0 float64, height0 float64) {
	var cr1 *C.cairoContext
	var x1 C.double
	var y1 C.double
	var width1 C.double
	var height1 C.double
	if cr0 != nil {
		cr1 = (*C.cairoContext)(cr0.C)
	}
	x1 = C.double(x0)
	y1 = C.double(y0)
	width1 = C.double(width0)
	height1 = C.double(height0)
	C.pango_cairo_error_underline_path(cr1, x1, y1, width1, height1)
}
示例#2
0
//void pango_cairo_error_underline_path (cairo_t       *cr,
//				       double         x,
//				       double         y,
//				       double         width,
//				       double         height);
func CairoErrorUnderlinePath(cr *cairo.Context, x, y, width, height float64) {
	C.pango_cairo_error_underline_path(cairo_context(cr), C.double(x), C.double(y), C.double(width), C.double(height))
}