source: buchla-68k/include/fields.h@ f7428b1

Last change on this file since f7428b1 was f7428b1, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Started to rework include files.

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