Esempio n. 1
0
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
}
Esempio n. 2
0
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
}