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

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

Detailed Description

structure for form fields

Definition at line 114 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 128 of file form.h.

Referenced by field_editor(), form_exec_cmd(), 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 117 of file form.h.

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

◆ 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 132 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 121 of file form.h.

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

◆ 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 137 of file form.h.

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

◆ 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 125 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 119 of file form.h.

Referenced by field_editor(), form_display_field_brackets(), 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 115 of file form.h.

Referenced by field_editor(), form_display_field(), form_display_field_brackets(), form_display_screen(), form_parse_desc(), and form_yx_to_fidx().


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