Example #1
0
func (menu *Menu) Format(rows int, cols int) {
	cRows := C.int(rows)
	cCols := C.int(cols)
	C.menu_format((*C.MENU)(menu), &cRows, &cCols)
}
Example #2
0
func (m *Menu) Format() (int, int) {
	var crow, ccol C.int
	C.menu_format(m.menu, &crow, &ccol)
	return int(crow), int(ccol)
}