Lines Matching full:field
76 short pmin; /* index of first field on page */
77 short pmax; /* index of last field on page */
78 short smin; /* index of top leftmost field on page */
79 short smax; /* index of bottom rightmost field on page */
85 * FIELD *
98 int maxgrow; /* maximum field growth */
103 short index; /* into form -> field */
110 struct fieldnode * link; /* linked field chain */
112 struct typenode * type; /* field type */
114 FIELD_CELL * buf; /* field buffers */
118 * there are existing applications that manipulate the members of FIELD
127 FIELD; typedef
140 int currow; /* current row in field window */
141 int curcol; /* current col in field window */
142 int toprow; /* in scrollable field window */
143 int begincol; /* in horiz. scrollable field */
150 WINDOW * w; /* window for current field */
151 FIELD ** field; /* field [maxfield] */ member
152 FIELD * current; /* current field */
184 bool (*ofcheck)(FIELD *,const void *); /* field validation */
185 bool (*gfcheck)(FORM*,FIELD *,const void*); /* generic field validation */
190 FIELD*,const void*); /* generic char validation */
193 bool (*onext)(FIELD *,const void *); /* enumerate next value */
194 bool (*gnext)(FORM*,FIELD*,const void*); /* generic enumerate next */
197 bool (*oprev)(FIELD *,const void *); /* enumerate prev value */
198 bool (*gprev)(FORM*,FIELD*,const void*); /* generic enumerate prev */
202 bool (*fcheck)(FIELD *,const void *); /* field validation */
205 bool (*next)(FIELD *,const void *); /* enumerate next value */
206 bool (*prev)(FIELD *,const void *); /* enumerate prev value */
218 /* field justification */
224 /* field options */
250 #define REQ_NEXT_FIELD (KEY_MAX + 5) /* move to next field */
251 #define REQ_PREV_FIELD (KEY_MAX + 6) /* move to previous field */
252 #define REQ_FIRST_FIELD (KEY_MAX + 7) /* move to first field */
253 #define REQ_LAST_FIELD (KEY_MAX + 8) /* move to last field */
254 #define REQ_SNEXT_FIELD (KEY_MAX + 9) /* move to sorted next field */
255 #define REQ_SPREV_FIELD (KEY_MAX + 10) /* move to sorted prev field */
256 #define REQ_SFIRST_FIELD (KEY_MAX + 11) /* move to sorted first field */
257 #define REQ_SLAST_FIELD (KEY_MAX + 12) /* move to sorted last field */
258 #define REQ_LEFT_FIELD (KEY_MAX + 13) /* move to left to field */
259 #define REQ_RIGHT_FIELD (KEY_MAX + 14) /* move to right to field */
260 #define REQ_UP_FIELD (KEY_MAX + 15) /* move to up to field */
261 #define REQ_DOWN_FIELD (KEY_MAX + 16) /* move to down to field */
263 #define REQ_NEXT_CHAR (KEY_MAX + 17) /* move to next char in field */
264 #define REQ_PREV_CHAR (KEY_MAX + 18) /* move to prev char in field */
265 #define REQ_NEXT_LINE (KEY_MAX + 19) /* move to next line in field */
266 #define REQ_PREV_LINE (KEY_MAX + 20) /* move to prev line in field */
267 #define REQ_NEXT_WORD (KEY_MAX + 21) /* move to next word in field */
268 #define REQ_PREV_WORD (KEY_MAX + 22) /* move to prev word in field */
269 #define REQ_BEG_FIELD (KEY_MAX + 23) /* move to first char in field */
273 #define REQ_LEFT_CHAR (KEY_MAX + 27) /* move left in field */
274 #define REQ_RIGHT_CHAR (KEY_MAX + 28) /* move right in field */
275 #define REQ_UP_CHAR (KEY_MAX + 29) /* move up in field */
276 #define REQ_DOWN_CHAR (KEY_MAX + 30) /* move down in field */
286 #define REQ_CLR_EOF (KEY_MAX + 39) /* clear to end of field */
287 #define REQ_CLR_FIELD (KEY_MAX + 40) /* clear entire field */
290 #define REQ_SCR_FLINE (KEY_MAX + 43) /* scroll field forward a line */
291 #define REQ_SCR_BLINE (KEY_MAX + 44) /* scroll field backward a line */
292 #define REQ_SCR_FPAGE (KEY_MAX + 45) /* scroll field forward a page */
293 #define REQ_SCR_BPAGE (KEY_MAX + 46) /* scroll field backward a page */
294 #define REQ_SCR_FHPAGE (KEY_MAX + 47) /* scroll field forward half page */
295 #define REQ_SCR_BHPAGE (KEY_MAX + 48) /* scroll field backward half page */
303 #define REQ_VALIDATION (KEY_MAX + 55) /* validate field */
304 #define REQ_NEXT_CHOICE (KEY_MAX + 56) /* display next field choice */
305 #define REQ_PREV_CHOICE (KEY_MAX + 57) /* display prev field choice */
321 * standard field types *
331 * built-in additional field types *
340 bool (* const field_check)(FIELD *,const void *),
351 bool (* const next_choice)(FIELD *,const void *),
352 bool (* const prev_choice)(FIELD *,const void *));
355 * FIELD routines *
357 extern FORM_EXPORT(FIELD *) new_field (int,int,int,int,int,int);
358 extern FORM_EXPORT(FIELD *) dup_field (FIELD *,int,int);
359 extern FORM_EXPORT(FIELD *) link_field (FIELD *,int,int);
361 extern FORM_EXPORT(int) free_field (FIELD *);
362 extern FORM_EXPORT(int) field_info (const FIELD *,int *,int *,int *,int *,int *,int *);
363 extern FORM_EXPORT(int) dynamic_field_info (const FIELD *,int *,int *,int *);
364 extern FORM_EXPORT(int) set_max_field ( FIELD *,int);
365 extern FORM_EXPORT(int) move_field (FIELD *,int,int);
366 extern FORM_EXPORT(int) set_field_type (FIELD *,FIELDTYPE *,...);
367 extern FORM_EXPORT(int) set_new_page (FIELD *,bool);
368 extern FORM_EXPORT(int) set_field_just (FIELD *,int);
369 extern FORM_EXPORT(int) field_just (const FIELD *);
370 extern FORM_EXPORT(int) set_field_fore (FIELD *,chtype);
371 extern FORM_EXPORT(int) set_field_back (FIELD *,chtype);
372 extern FORM_EXPORT(int) set_field_pad (FIELD *,int);
373 extern FORM_EXPORT(int) field_pad (const FIELD *);
374 extern FORM_EXPORT(int) set_field_buffer (FIELD *,int,const char *);
375 extern FORM_EXPORT(int) set_field_status (FIELD *,bool);
376 extern FORM_EXPORT(int) set_field_userptr (FIELD *, void *);
377 extern FORM_EXPORT(int) set_field_opts (FIELD *,Field_Options);
378 extern FORM_EXPORT(int) field_opts_on (FIELD *,Field_Options);
379 extern FORM_EXPORT(int) field_opts_off (FIELD *,Field_Options);
381 extern FORM_EXPORT(chtype) field_fore (const FIELD *);
382 extern FORM_EXPORT(chtype) field_back (const FIELD *);
384 extern FORM_EXPORT(bool) new_page (const FIELD *);
385 extern FORM_EXPORT(bool) field_status (const FIELD *);
387 extern FORM_EXPORT(void *) field_arg (const FIELD *);
389 extern FORM_EXPORT(void *) field_userptr (const FIELD *);
391 extern FORM_EXPORT(FIELDTYPE *) field_type (const FIELD *);
393 extern FORM_EXPORT(char *) field_buffer (const FIELD *,int);
395 extern FORM_EXPORT(Field_Options) field_opts (const FIELD *);
401 extern FORM_EXPORT(FORM *) new_form (FIELD **);
403 extern FORM_EXPORT(FIELD **) form_fields (const FORM *);
404 extern FORM_EXPORT(FIELD *) current_field (const FORM *);
415 extern FORM_EXPORT(int) set_form_fields (FORM *,FIELD **);
419 extern FORM_EXPORT(int) set_current_field (FORM *,FIELD *);
421 extern FORM_EXPORT(int) field_index (const FIELD *);
452 extern FORM_EXPORT(FORM *) NCURSES_SP_NAME(new_form) (SCREEN*, FIELD **);