Last change
on this file since 0170798 was 5fa506d, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Include file cleanup.
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | curpak.h -- header for cursor and data entry functions
|
---|
| 4 | Version 5 -- 1988-10-12 -- D.N. Lynx Crowe
|
---|
| 5 | =============================================================================
|
---|
| 6 |
|
---|
| 7 | */
|
---|
| 8 |
|
---|
[f7428b1] | 9 | #pragma once
|
---|
[5fa506d] | 10 |
|
---|
| 11 | #include "fields.h"
|
---|
[f7428b1] | 12 | #include "stdint.h"
|
---|
| 13 |
|
---|
[f40a309] | 14 | /* cursor types */
|
---|
| 15 |
|
---|
| 16 | #define CT_GRAF 0 /* graphics */
|
---|
| 17 | #define CT_TEXT 1 /* text -- general */
|
---|
| 18 | #define CT_VIRT 2 /* virtual -- graphic */
|
---|
| 19 | #define CT_SCOR 3 /* text -- score */
|
---|
| 20 | #define CT_SMTH 4 /* text -- smooth scroll */
|
---|
| 21 | #define CT_MENU 5 /* virtual -- character */
|
---|
| 22 |
|
---|
| 23 | /* cursor and data entry function parameter structure */
|
---|
| 24 |
|
---|
| 25 | struct curpak {
|
---|
| 26 |
|
---|
[7258c6a] | 27 | int16_t (*curtype)(void);
|
---|
[0c834c5] | 28 | void (*premove)(void);
|
---|
| 29 | void (*pstmove)(void);
|
---|
| 30 | void (*cx_key)(void);
|
---|
| 31 | void (*cy_key)(void);
|
---|
| 32 | void (*cx_upd)(void);
|
---|
| 33 | void (*cy_upd)(void);
|
---|
| 34 | void (*xy_up)(void);
|
---|
| 35 | void (*xy_dn)(void);
|
---|
| 36 | void (*x_key)(void);
|
---|
| 37 | void (*e_key)(void);
|
---|
| 38 | void (*m_key)(void);
|
---|
[7258c6a] | 39 | void (*d_key)(int16_t k);
|
---|
| 40 | int16_t (*not_fld)(int16_t k);
|
---|
[f40a309] | 41 | struct fet *curfet;
|
---|
| 42 | struct selbox *csbp;
|
---|
[7258c6a] | 43 | int16_t *cratex;
|
---|
| 44 | int16_t *cratey;
|
---|
| 45 | int16_t cmtype;
|
---|
| 46 | int16_t cxval;
|
---|
| 47 | int16_t cyval;
|
---|
[f40a309] | 48 | };
|
---|
[7258c6a] | 49 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.