예제 #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))
}