func (menu *Menu) Scale() (rows int, columns int, err error) { var cRows, cColumns C.int if C.scale_menu((*C.MENU)(menu), &cRows, &cColumns) != C.OK { return 0, 0, MenusError{"Form.Scale failed"} } return int(cRows), int(cColumns), nil }
func (menu *Menu) Scale() (int, int, error) { var ( rows C.int cols C.int ) if C.scale_menu((*C.MENU)(menu), &rows, &cols) != C.OK { return 0, 0, MenusError{"Form.Scale failed"} } return int(rows), int(cols), nil }
// Scale func (m *Menu) Scale() (int, int, error) { var y, x C.int err := C.scale_menu(m.menu, (*C.int)(&y), (*C.int)(&x)) return int(y), int(x), ncursesError(syscall.Errno(err)) }