Example #1
0
// 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))
}
Example #2
0
// 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))
}
Example #3
0
// OptionsOff turns feature(s) off
func (f *Field) SetOptionsOff(opts Char) error {
	err := int(C.field_opts_off((*C.FIELD)(f), C.Field_Options(opts)))
	if err != C.E_OK {
		return ncursesError(syscall.Errno(err))
	}
	return nil
}
Example #4
0
func (field *Field) OptsOff(attr FieldOptions) bool {
	return isOk(C.field_opts_off((*C.FIELD)(field), (C.Field_Options)(attr)))
}
Example #5
0
func (f *Field) OptsOff(attr FieldOptions) error {
	return geterror(C.field_opts_off(f.field, attr.fieldOptions))
}