func (form *Form) Scale() (int, int, error) { var ( rows C.int cols C.int ) if C.scale_form((*C.FORM)(form), &rows, &cols) != C.OK { return 0, 0, FormsError{"Form.Scale failed"} } return int(rows), int(cols), nil }
func (f *Form) Scale() (int, int, error) { var ( rows C.int cols C.int ) if C.scale_form(f.form, &rows, &cols) != C.OK { return 0, 0, errors.New("Form.Scale failed") } return int(rows), int(cols), nil }