Exemple #1
0
func UpdateLayout(cr0 *cairo.Context, layout0 pango.LayoutLike) {
	var cr1 *C.cairoContext
	var layout1 *C.PangoLayout
	if cr0 != nil {
		cr1 = (*C.cairoContext)(cr0.C)
	}
	if layout0 != nil {
		layout1 = layout0.InheritedFromPangoLayout()
	}
	C.pango_cairo_update_layout(cr1, layout1)
}
Exemple #2
0
//void         pango_cairo_update_layout (cairo_t     *cr,
//					PangoLayout *layout);
func CairoUpdateLayout(cr *cairo.Context, v *Layout) {
	C.pango_cairo_update_layout(cairo_context(cr), v.native())
}