Exemple #1
0
func NewFontInfoPixelSize(pixelSize *Size) FontInfo {
	f := &fontInfo{}
	f.bindPtr(C.wxFontInfo_PixelSize_New((*C.Size)(pixelSize)), func(p unsafe.Pointer) { C.wxFontInfo_Delete(p) })
	return f
}
Exemple #2
0
func NewFontInfo() FontInfo {
	f := &fontInfo{}
	f.bindPtr(C.wxFontInfo_New(), func(p unsafe.Pointer) { C.wxFontInfo_Delete(p) })
	return f
}
Exemple #3
0
func NewFontInfoPointSize(pointSize int) FontInfo {
	f := &fontInfo{}
	f.bindPtr(C.wxFontInfo_PointSize_New(C.int(pointSize)), func(p unsafe.Pointer) { C.wxFontInfo_Delete(p) })
	return f
}
Exemple #4
0
func (f *fontInfo) Release() {
	C.wxFontInfo_Delete(f.ptr())
	f.setPtr(nil)
}