// Options turns features on and off func (f *Field) Options(opts int, on bool) { if on { C.field_opts_on((*C.FIELD)(f), C.Field_Options(opts)) return } C.field_opts_off((*C.FIELD)(f), C.Field_Options(opts)) }
// Options turns features on and off func (f *Field) Options(opts int, on bool) { if on { C.field_opts_on(f.field, C.Field_Options(opts)) return } C.field_opts_off(f.field, C.Field_Options(opts)) }
// OptionsOn turns feature(s) on func (f *Field) SetOptionsOn(opts Char) error { err := int(C.field_opts_on((*C.FIELD)(f), C.Field_Options(opts))) if err != C.E_OK { return ncursesError(syscall.Errno(err)) } return nil }
func (field *Field) OptsOn(attr FieldOptions) bool { return isOk(C.field_opts_on((*C.FIELD)(field), (C.Field_Options)(attr))) }
func (f *Field) OptsOn(attr FieldOptions) error { return geterror(C.field_opts_on(f.field, attr.fieldOptions)) }