2ee739cc |
1 | /* |
2 | * colSelect.h |
3 | * |
4 | * [Generated from colSelect, 25 September 1996] |
5 | */ |
6 | |
7 | #if !defined(__CC_NORCROFT) || !defined(__arm) |
8 | #error You must use the Norcroft ARM Compiler for Sapphire programs |
9 | #endif |
10 | |
11 | #pragma include_only_once |
12 | #pragma force_top_level |
13 | |
14 | #ifndef __colSelect_h |
15 | #define __colSelect_h |
16 | |
17 | #ifndef __sapphire_h |
18 | #include "sapphire.h" |
19 | #endif |
20 | |
21 | /*----- Overview ----------------------------------------------------------* |
22 | * |
23 | * Functions provided: |
24 | * |
25 | * colSelect |
26 | */ |
27 | |
28 | /* --- colSelect --- * |
29 | * |
30 | * On entry: R0 == address of a colour block |
31 | * R1 == pointer to routine to call when done |
32 | * R2 == R10 to call routine with |
33 | * R3 == R12 to call routine with |
34 | * |
35 | * On exit: May return error |
36 | * |
37 | * Use: Displays a colour selector dialogue box. It allows the user |
38 | * to edit a colour (understatement....) |
39 | */ |
40 | |
41 | extern routine colSelect; |
42 | |
43 | /*----- The colour selector handler ---------------------------------------* |
44 | * |
45 | * The routine you pass to colSelect is entered with R0 as a reason code, |
46 | * and other registers containing values which depend on that. Reason codes |
47 | * defined are: |
48 | */ |
49 | |
50 | #define csEvent_choice 0 |
51 | |
52 | #define csEvent_close 1 |
53 | |
54 | /*----- Data structures ---------------------------------------------------*/ |
55 | |
56 | #define col_rgb 0 |
57 | #define col_model 4 |
58 | #define col_data 8 |
59 | #define col_size 12 |
60 | |
61 | /*----- That's all, folks -------------------------------------------------*/ |
62 | |
63 | #endif |