Esempio n. 1
0
func NewFontDescriptionFromString(str string) *FontDescription {
	s := gobject.GString(str)
	defer s.Free()

	f := &FontDescription{}
	f.object = C.pango_font_description_from_string((*C.char)(s.GetPtr()))
	FontDescriptionFinalizer(f)

	return f
}
Esempio n. 2
0
func AtomIntern(atomName string, onlyIfExists bool) Atom {
	s := gobject.GString(atomName)
	defer s.Free()
	b := gobject.GBool(onlyIfExists)
	defer b.Free()

	o := C.gdk_atom_intern((*C.gchar)(s.GetPtr()), *((*C.gboolean)(b.GetPtr())))

	a := Atom{}
	a.object = new(C.GdkAtom)
	*a.object = o

	return a
}
Esempio n. 3
0
func (self *FontDescription) SetFamily(family string) {
	s := gobject.GString(family)
	defer s.Free()
	C.pango_font_description_set_family(self.object, (*C.char)(s.GetPtr()))
}