示例#1
0
文件: menus.go 项目: mpatraw/gocurse
func (menu *Menu) SetSub(win *Window) bool {
	return isOk(C.set_menu_sub((*C.MENU)(menu), (*C.WINDOW)(unsafe.Pointer(win))))
}
示例#2
0
// SubWindow for the menu
func (m *Menu) SubWindow(sub *Window) error {
	err := C.set_menu_sub(m.menu, sub.win)
	return ncursesError(syscall.Errno(err))
}