예제 #1
0
파일: pango.go 프로젝트: pauldub/go-gtk3
func (self *FontDescription) Merget(descToMerge *FontDescription, replaceExisting bool) {
	b := gobject.GBool(replaceExisting)
	defer b.Free()

	if descToMerge == nil {
		C.pango_font_description_merge(self.object, nil, *((*C.gboolean)(b.GetPtr())))
		return
	}
	C.pango_font_description_merge(self.object, descToMerge.object, *((*C.gboolean)(b.GetPtr())))
}
예제 #2
0
//void pango_font_description_merge        (PangoFontDescription       *desc,
//					  const PangoFontDescription *desc_to_merge,
//					  gboolean                    replace_existing);
func (v *FontDescription) Merge(desc_to_merge *FontDescription, replace_existing bool) {
	C.pango_font_description_merge(v.native(), desc_to_merge.native(), gbool(replace_existing))
}