示例#1
0
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
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 项目: jkeys089/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))
}
示例#4
0
文件: button.go 项目: napsy/go-gtk3
func (self *Button) GetLabel() string {
	l := C.gtk_button_get_label(self.object)
	return gobject.GoString(unsafe.Pointer(l))
}
示例#5
0
文件: widget.go 项目: napsy/go-gtk3
func (self *Widget) GetName() string {
	n := gobject.GetProperty(self, "name")
	defer n.Free()
	return gobject.GoString(n.GetPtr())
}
示例#6
0
文件: entry.go 项目: napsy/go-gtk3
func (self *Entry) GetText() string {
	l := C.gtk_entry_get_text(self.object)
	return gobject.GoString(unsafe.Pointer(l))
}
示例#7
0
文件: label.go 项目: napsy/go-gtk3
func (self *Label) GetCurrentURI() string {
	uri := C.gtk_label_get_current_uri(self.object)
	return gobject.GoString(unsafe.Pointer(&uri))
}
示例#8
0
文件: label.go 项目: napsy/go-gtk3
func (self *Label) GetLabel() string {
	l := C.gtk_label_get_label(self.object)
	return gobject.GoString(unsafe.Pointer(&l))
}
示例#9
0
文件: label.go 项目: napsy/go-gtk3
func (self *Label) GetText() string {
	txt := C.gtk_label_get_text(self.object)
	return gobject.GoString(unsafe.Pointer(txt))
}
示例#10
0
文件: window.go 项目: napsy/go-gtk3
func (self *Window) GetTitle() string {
	t := gobject.GetProperty(self, "title")
	defer t.Free()
	return gobject.GoString(t.GetPtr())
}
示例#11
0
文件: frame.go 项目: napsy/go-gtk3
func (self *Frame) GetLabel() string {
	l := C.gtk_frame_get_label(self.object)
	return gobject.GoString(unsafe.Pointer(l))
}