[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | fields.h -- field definition header
|
---|
| 4 | Version 6 -- 1987-09-25 -- D.N. Lynx Crowe
|
---|
| 5 | =============================================================================
|
---|
| 6 | */
|
---|
| 7 |
|
---|
[f7428b1] | 8 | #pragma once
|
---|
[5fa506d] | 9 |
|
---|
[f7428b1] | 10 | #include "stdint.h"
|
---|
| 11 |
|
---|
[f40a309] | 12 | #define MAXEBUF 80 /* maximum length of data in the edit buffer */
|
---|
| 13 |
|
---|
| 14 | struct fet { /* field definition structure */
|
---|
| 15 |
|
---|
[7258c6a] | 16 | int16_t frow; /* row the field is in */
|
---|
| 17 | int16_t flcol; /* leftmost column of field */
|
---|
| 18 | int16_t frcol; /* rightmost column of field */
|
---|
| 19 | int16_t ftags; /* field tags / parameters (used variously) */
|
---|
| 20 | int16_t (*ebto)(int16_t n);
|
---|
[0c834c5] | 21 | /* edit buffer 'to' (setup) function */
|
---|
[7258c6a] | 22 | int16_t (*ebfrom)(int16_t n);
|
---|
[0c834c5] | 23 | /* edit buffer 'from' (parse) function */
|
---|
[7258c6a] | 24 | int16_t (*redisp)(int16_t nn);
|
---|
[0c834c5] | 25 | /* field (re)display function */
|
---|
[7258c6a] | 26 | int16_t (*datain)(int16_t nn, int16_t k);
|
---|
[0c834c5] | 27 | /* data entry function */
|
---|
[f40a309] | 28 | };
|
---|
| 29 |
|
---|
| 30 | struct selbox { /* selection box structure */
|
---|
| 31 |
|
---|
[7258c6a] | 32 | int16_t sbxmin; /* minimum x - left edge of box */
|
---|
| 33 | int16_t sbymin; /* minimum y - top edge of box */
|
---|
| 34 | int16_t sbxmax; /* maximum x - right edge of box */
|
---|
| 35 | int16_t sbymax; /* maximum y - bottom edge of box */
|
---|
| 36 | int16_t sbarg; /* select box argument */
|
---|
| 37 | int16_t (*boxhit)(int16_t n);
|
---|
[0c834c5] | 38 | /* box-hit function */
|
---|
[f40a309] | 39 | };
|
---|