Example #1
0
func PangoRectToPixels(P *C.PangoRectangle) (x, y, w, h float64) {
	return float64(C.pango_units_to_double(P.x)),
		float64(C.pango_units_to_double(P.y)),
		float64(C.pango_units_to_double(P.width)),
		float64(C.pango_units_to_double(P.height))
}
Example #2
0
func PangoToPixels(u C.int) float64 {
	return float64(C.pango_units_to_double(u))
}