#include "form.priv.h"Go to the source code of this file.
Functions | |
| set_form_opts (FORM *form, Form_Options opts) | |
| form_opts (const FORM *form) | |
| form_opts_on (FORM *form, Form_Options opts) | |
| form_opts_off (FORM *form, Form_Options opts) | |
|
|
Definition at line 71 of file frm_opts.c. References ALL_FORM_OPTS, Normalize_Form, returnCode, T, and T_CALLED. Referenced by NCursesForm::options(). 00072 { 00073 T((T_CALLED("form_opts(%p)"), form)); 00074 returnCode((int)(Normalize_Form(form)->opts & ALL_FORM_OPTS)); 00075 }
|
|
||||||||||||
|
Definition at line 113 of file frm_opts.c. References ALL_FORM_OPTS, E_BAD_ARGUMENT, E_OK, Normalize_Form, RETURN, T, and T_CALLED. Referenced by NCursesForm::options_off(). 00114 { 00115 T((T_CALLED("form_opts_off(%p,%d)"), form, opts)); 00116 00117 opts &= ALL_FORM_OPTS; 00118 if (opts & ~ALL_FORM_OPTS) 00119 RETURN(E_BAD_ARGUMENT); 00120 else 00121 { 00122 Normalize_Form(form)->opts &= ~opts; 00123 RETURN(E_OK); 00124 } 00125 }
|
|
||||||||||||
|
Definition at line 88 of file frm_opts.c. References ALL_FORM_OPTS, E_BAD_ARGUMENT, E_OK, Normalize_Form, RETURN, T, and T_CALLED. Referenced by NCursesForm::options_on(). 00089 { 00090 T((T_CALLED("form_opts_on(%p,%d)"), form, opts)); 00091 00092 opts &= ALL_FORM_OPTS; 00093 if (opts & ~ALL_FORM_OPTS) 00094 RETURN(E_BAD_ARGUMENT); 00095 else 00096 { 00097 Normalize_Form(form)->opts |= opts; 00098 RETURN(E_OK); 00099 } 00100 }
|
|
||||||||||||
|
Definition at line 48 of file frm_opts.c. References ALL_FORM_OPTS, E_BAD_ARGUMENT, E_OK, Normalize_Form, RETURN, T, and T_CALLED. Referenced by NCursesForm::set_options(). 00049 { 00050 T((T_CALLED("set_form_opts(%p,%d)"), form, opts)); 00051 00052 opts &= ALL_FORM_OPTS; 00053 if (opts & ~ALL_FORM_OPTS) 00054 RETURN(E_BAD_ARGUMENT); 00055 else 00056 { 00057 Normalize_Form(form)->opts = opts; 00058 RETURN(E_OK); 00059 } 00060 }
|