Esempio n. 1
0
func (field *Field) Link(top int, left int) (*Field, error) {
	link := (*Field)(C.link_field((*C.FIELD)(field), C.int(top), C.int(left)))
	if link == nil {
		return nil, FormsError{"Field.Link failed"}
	}
	return link, nil
}
Esempio n. 2
0
func (f *Field) Link(top int, left int) (*Field, error) {
	link := C.link_field(f.field, C.int(top), C.int(left))
	if link == nil {
		return nil, errors.New("Field.Link failed")
	}
	return &Field{link}, nil
}