示例#1
0
文件: menus.go 项目: mpatraw/gocurse
func (item *Item) Name() string {
	return C.GoString(C.item_name((*C.ITEM)(item)))
}
示例#2
0
// Free must be called on all menu items to avoid memory leaks
func (mi *MenuItem) Free() {
	C.free(unsafe.Pointer(C.item_name(mi.item)))
	C.free_item(mi.item)
}
示例#3
0
// Name of the menu item
func (mi *MenuItem) Name() string {
	return C.GoString(C.item_name(mi.item))
}
示例#4
0
文件: menu.go 项目: zozor/gocurse
func (i *Item) Name() string {
	return C.GoString(C.item_name(i.item))
}