示例#1
0
文件: pango.go 项目: pauldub/go-gtk3
func (self *FontDescription) GetFamily() string {
	s := C.pango_font_description_get_family(self.object)
	if s != nil {
		return gobject.GoString(unsafe.Pointer(s))
	}
	return ""
}
示例#2
0
文件: pango.go 项目: pauldub/go-gtk3
func (self *FontDescription) ToFilename() string {
	s := C.pango_font_description_to_filename(self.object)

	if s != nil {
		return gobject.GoString(unsafe.Pointer(s))
	}
	return ""
}
示例#3
0
文件: gdk3.go 项目: pauldub/go-gtk3
func (self Atom) Name() string {
	if self.object == nil {
		return ""
	}

	s := C.gdk_atom_name(*self.object)
	return gobject.GoString(unsafe.Pointer(s))
}