Exemplo n.º 1
0
func ShowGlyphItem(cr0 *cairo.Context, text0 string, glyph_item0 *pango.GlyphItem) {
	var cr1 *C.cairoContext
	var text1 *C.char
	var glyph_item1 *C.PangoGlyphItem
	if cr0 != nil {
		cr1 = (*C.cairoContext)(cr0.C)
	}
	text1 = _GoStringToGString(text0)
	defer C.free(unsafe.Pointer(text1))
	glyph_item1 = (*C.PangoGlyphItem)(unsafe.Pointer(glyph_item0))
	C.pango_cairo_show_glyph_item(cr1, text1, glyph_item1)
}
Exemplo n.º 2
0
//void pango_cairo_show_glyph_item   (cairo_t          *cr,
//				    const char       *text,
//				    PangoGlyphItem   *glyph_item);
func CairoShowGlyphItem(cr *cairo.Context, text string, glyph_item *GlyphItem) {
	cstr := C.CString(text)
	defer C.free(unsafe.Pointer(cstr))
	C.pango_cairo_show_glyph_item(cairo_context(cr), (*C.char)(cstr), glyph_item.native())
}