C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
Field Struct Reference

structure for form fields More...

#include <form.h>

Collaboration diagram for Field:
[legend]

Data Fields

char accept_s [FIELD_MAXLEN]
int col
cchar_t display_cc [FIELD_MAXLEN]
char display_s [FIELD_MAXLEN]
int ff
cchar_t filler_cc [FIELD_MAXLEN]
char filler_s [FIELD_MAXLEN]
char input_s [FIELD_MAXLEN]
int len
int line

Detailed Description

structure for form fields

Definition at line 112 of file form.h.

Field Documentation

◆ accept_s

char Field::accept_s[FIELD_MAXLEN]

the accepted string for this field, used for storing the validated and accepted value for this field after processing the user's input during form processing

Definition at line 126 of file form.h.

Referenced by field_editor(), form_display_accept_field(), form_display_fields(), form_exec_cmd(), form_exec_receiver(), form_fmt_field(), form_process(), form_validate_field(), and form_write().

◆ col

int Field::col

the column number on the form window where this field should be displayed

Definition at line 115 of file form.h.

Referenced by display_form(), field_editor(), form_display_accept_field(), form_display_field(), form_display_fields(), form_parse_desc(), and form_yx_to_fidx().

◆ display_cc

cchar_t Field::display_cc[FIELD_MAXLEN]

display complex character array

Definition at line 135 of file form.h.

Referenced by form_display_field(), and form_display_fields().

◆ display_s

char Field::display_s[FIELD_MAXLEN]

the display string for this field, used for storing the formatted string that will be displayed in the field input area on the form window during form processing, based on the accepted value and the field format

Definition at line 130 of file form.h.

Referenced by form_display_field(), form_display_fields(), and form_fmt_field().

◆ ff

int Field::ff

the field format, represented as an integer corresponding to the FieldFormat enum values, e.g. FF_STRING, FF_DECIMAL_INT, etc. This is used for validating and formatting the field input values according to their specified formats.

Definition at line 119 of file form.h.

Referenced by field_editor(), form_fmt_field(), form_parse_desc(), and form_validate_field().

◆ filler_cc

cchar_t Field::filler_cc[FIELD_MAXLEN]

filler complex character array

Definition at line 141 of file form.h.

Referenced by form_display_field(), and form_display_fields().

◆ filler_s

char Field::filler_s[FIELD_MAXLEN]

the filler string for this field, used for storing the string that will be used to fill the field input area on the form window during form processing, based on the field length and the fill character specified in the form structure

Definition at line 136 of file form.h.

Referenced by form_display_accept_field(), and form_display_fields().

◆ input_s

char Field::input_s[FIELD_MAXLEN]

the input string for this field, used for storing the user's input value for this field during form processing

Definition at line 123 of file form.h.

Referenced by form_fmt_field().

◆ len

int Field::len

the length of the field input area, used for display and formatting purposes

Definition at line 117 of file form.h.

Referenced by display_form(), field_editor(), form_display_field(), form_display_fields(), form_fmt_field(), form_parse_desc(), and form_yx_to_fidx().

◆ line

int Field::line

the line number on the form window where this field should be displayed

Definition at line 113 of file form.h.

Referenced by display_form(), field_editor(), form_display_accept_field(), form_display_field(), form_display_fields(), form_parse_desc(), and form_yx_to_fidx().


The documentation for this struct was generated from the following file: