Example #1
0
//PangoLayout *pango_layout_new            (PangoContext   *context);
func LayoutNew(context *Context) *Layout {
	c := C.pango_layout_new(context.native())

	layout := new(Layout)
	layout.pangoLayout = (*C.PangoLayout)(c)
	return layout
}
Example #2
0
func NewLayout(ctx *Context) *Layout {
	return &Layout{C.pango_layout_new(ctx.GContext)}
}