Home | History | Annotate | Download | only in include

Lines Matching refs:FIELD

61   short pmin;		/* index of first field on page			*/
62 short pmax; /* index of last field on page */
63 short smin; /* index of top leftmost field on page */
64 short smax; /* index of bottom rightmost field on page */
68 * FIELD *
79 int maxgrow; /* maximum field growth */
84 short index; /* into form -> field */
91 struct fieldnode * link; /* linked field chain */
93 struct typenode * type; /* field type */
95 FIELD_CELL * buf; /* field buffers */
99 * there are existing applications that manipulate the members of FIELD
106 } FIELD;
117 int currow; /* current row in field window */
118 int curcol; /* current col in field window */
119 int toprow; /* in scrollable field window */
120 int begincol; /* in horiz. scrollable field */
127 WINDOW * w; /* window for current field */
128 FIELD ** field; /* field [maxfield] */
129 FIELD * current; /* current field */
157 bool (*ofcheck)(FIELD *,const void *); /* field validation */
158 bool (*gfcheck)(FORM*,FIELD *,const void*); /* generic field validation */
163 FIELD*,const void*); /* generic char validation */
166 bool (*onext)(FIELD *,const void *); /* enumerate next value */
167 bool (*gnext)(FORM*,FIELD*,const void*); /* generic enumerate next */
170 bool (*oprev)(FIELD *,const void *); /* enumerate prev value */
171 bool (*gprev)(FORM*,FIELD*,const void*); /* generic enumerate prev */
175 bool (*fcheck)(FIELD *,const void *); /* field validation */
178 bool (*next)(FIELD *,const void *); /* enumerate next value */
179 bool (*prev)(FIELD *,const void *); /* enumerate prev value */
189 /* field justification */
195 /* field options */
217 #define REQ_NEXT_FIELD (KEY_MAX + 5) /* move to next field */
218 #define REQ_PREV_FIELD (KEY_MAX + 6) /* move to previous field */
219 #define REQ_FIRST_FIELD (KEY_MAX + 7) /* move to first field */
220 #define REQ_LAST_FIELD (KEY_MAX + 8) /* move to last field */
221 #define REQ_SNEXT_FIELD (KEY_MAX + 9) /* move to sorted next field */
222 #define REQ_SPREV_FIELD (KEY_MAX + 10) /* move to sorted prev field */
223 #define REQ_SFIRST_FIELD (KEY_MAX + 11) /* move to sorted first field */
224 #define REQ_SLAST_FIELD (KEY_MAX + 12) /* move to sorted last field */
225 #define REQ_LEFT_FIELD (KEY_MAX + 13) /* move to left to field */
226 #define REQ_RIGHT_FIELD (KEY_MAX + 14) /* move to right to field */
227 #define REQ_UP_FIELD (KEY_MAX + 15) /* move to up to field */
228 #define REQ_DOWN_FIELD (KEY_MAX + 16) /* move to down to field */
230 #define REQ_NEXT_CHAR (KEY_MAX + 17) /* move to next char in field */
231 #define REQ_PREV_CHAR (KEY_MAX + 18) /* move to prev char in field */
232 #define REQ_NEXT_LINE (KEY_MAX + 19) /* move to next line in field */
233 #define REQ_PREV_LINE (KEY_MAX + 20) /* move to prev line in field */
234 #define REQ_NEXT_WORD (KEY_MAX + 21) /* move to next word in field */
235 #define REQ_PREV_WORD (KEY_MAX + 22) /* move to prev word in field */
236 #define REQ_BEG_FIELD (KEY_MAX + 23) /* move to first char in field */
240 #define REQ_LEFT_CHAR (KEY_MAX + 27) /* move left in field */
241 #define REQ_RIGHT_CHAR (KEY_MAX + 28) /* move right in field */
242 #define REQ_UP_CHAR (KEY_MAX + 29) /* move up in field */
243 #define REQ_DOWN_CHAR (KEY_MAX + 30) /* move down in field */
253 #define REQ_CLR_EOF (KEY_MAX + 39) /* clear to end of field */
254 #define REQ_CLR_FIELD (KEY_MAX + 40) /* clear entire field */
257 #define REQ_SCR_FLINE (KEY_MAX + 43) /* scroll field forward a line */
258 #define REQ_SCR_BLINE (KEY_MAX + 44) /* scroll field backward a line */
259 #define REQ_SCR_FPAGE (KEY_MAX + 45) /* scroll field forward a page */
260 #define REQ_SCR_BPAGE (KEY_MAX + 46) /* scroll field backward a page */
261 #define REQ_SCR_FHPAGE (KEY_MAX + 47) /* scroll field forward half page */
262 #define REQ_SCR_BHPAGE (KEY_MAX + 48) /* scroll field backward half page */
270 #define REQ_VALIDATION (KEY_MAX + 55) /* validate field */
271 #define REQ_NEXT_CHOICE (KEY_MAX + 56) /* display next field choice */
272 #define REQ_PREV_CHOICE (KEY_MAX + 57) /* display prev field choice */
288 * standard field types *
298 * built-in additional field types *
307 bool (* const field_check)(FIELD *,const void *),
318 bool (* const next_choice)(FIELD *,const void *),
319 bool (* const prev_choice)(FIELD *,const void *));
322 * FIELD routines *
324 extern NCURSES_EXPORT(FIELD *) new_field (int,int,int,int,int,int);
325 extern NCURSES_EXPORT(FIELD *) dup_field (FIELD *,int,int);
326 extern NCURSES_EXPORT(FIELD *) link_field (FIELD *,int,int);
328 extern NCURSES_EXPORT(int) free_field (FIELD *);
329 extern NCURSES_EXPORT(int) field_info (const FIELD *,int *,int *,int *,int *,int *,int *);
330 extern NCURSES_EXPORT(int) dynamic_field_info (const FIELD *,int *,int *,int *);
331 extern NCURSES_EXPORT(int) set_max_field ( FIELD *,int);
332 extern NCURSES_EXPORT(int) move_field (FIELD *,int,int);
333 extern NCURSES_EXPORT(int) set_field_type (FIELD *,FIELDTYPE *,...);
334 extern NCURSES_EXPORT(int) set_new_page (FIELD *,bool);
335 extern NCURSES_EXPORT(int) set_field_just (FIELD *,int);
336 extern NCURSES_EXPORT(int) field_just (const FIELD *);
337 extern NCURSES_EXPORT(int) set_field_fore (FIELD *,chtype);
338 extern NCURSES_EXPORT(int) set_field_back (FIELD *,chtype);
339 extern NCURSES_EXPORT(int) set_field_pad (FIELD *,int);
340 extern NCURSES_EXPORT(int) field_pad (const FIELD *);
341 extern NCURSES_EXPORT(int) set_field_buffer (FIELD *,int,const char *);
342 extern NCURSES_EXPORT(int) set_field_status (FIELD *,bool);
343 extern NCURSES_EXPORT(int) set_field_userptr (FIELD *, void *);
344 extern NCURSES_EXPORT(int) set_field_opts (FIELD *,Field_Options);
345 extern NCURSES_EXPORT(int) field_opts_on (FIELD *,Field_Options);
346 extern NCURSES_EXPORT(int) field_opts_off (FIELD *,Field_Options);
348 extern NCURSES_EXPORT(chtype) field_fore (const FIELD *);
349 extern NCURSES_EXPORT(chtype) field_back (const FIELD *);
351 extern NCURSES_EXPORT(bool) new_page (const FIELD *);
352 extern NCURSES_EXPORT(bool) field_status (const FIELD *);
354 extern NCURSES_EXPORT(void *) field_arg (const FIELD *);
356 extern NCURSES_EXPORT(void *) field_userptr (const FIELD *);
358 extern NCURSES_EXPORT(FIELDTYPE *) field_type (const FIELD *);
360 extern NCURSES_EXPORT(char *) field_buffer (const FIELD *,int);
362 extern NCURSES_EXPORT(Field_Options) field_opts (const FIELD *);
368 extern NCURSES_EXPORT(FORM *) new_form (FIELD **);
370 extern NCURSES_EXPORT(FIELD **) form_fields (const FORM *);
371 extern NCURSES_EXPORT(FIELD *) current_field (const FORM *);
382 extern NCURSES_EXPORT(int) set_form_fields (FORM *,FIELD **);
386 extern NCURSES_EXPORT(int) set_current_field (FORM *,FIELD *);
387 extern NCURSES_EXPORT(int) field_index (const FIELD *);
415 extern NCURSES_EXPORT(FORM *) NCURSES_SP_NAME(new_form) (SCREEN*, FIELD **);