示例#1
0
文件: forms.go 项目: mpatraw/gocurse
func (field *Field) SetOpts(attr FieldOptions) bool {
	return isOk(C.set_field_opts((*C.FIELD)(field), (C.Field_Options)(attr)))
}
示例#2
0
文件: form.go 项目: zozor/gocurse
func (f *Field) SetOpts(attr FieldOptions) error {
	return geterror(C.set_field_opts(f.field, attr.fieldOptions))
}