chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Sapphire / csapph / h / dbx / numWrite
1 /*
2  * numWrite.h
3  *
4  * [Generated from numWrite, 08 November 1995]
5  */
6
7 #pragma include_only_once
8 #pragma force_top_level
9
10 #ifndef __numWrite_h
11 #define __numWrite_h
12
13 /*----- Overview ----------------------------------------------------------*
14  *
15  * Functions provided:
16  *
17  *  numWrite_set
18  *  numWrite_read
19  *  numWrite_bump
20  *
21  * Controls provided:
22  *
23  *   numWrite
24  *
25  * Macros provided:
26  *
27  *   NUMWRT
28  */
29
30 /* --- numWrite --- *
31  *
32  * Control data:        +0 == minimum value
33  *              +4 == maximum value
34  *              +8
35  *
36  * Workspace:   +0
37  *
38  * Flags:       --
39  *
40  * Use:         Control type for numeric writable icons.
41  */
42
43 extern routine numWrite;
44
45 /* --- numWrite --- *
46  *
47  * Control data:        +0 == minimum value
48  *              +4 == maximum value
49  *              +8
50  *
51  * Workspace:   +0
52  *
53  * Flags:       --
54  *
55  * Use:         Control type for numeric writable icons.
56  */
57
58 extern routine numWrite;
59
60 /* --- numWrite_set --- *
61  *
62  * On entry:    R0 == dialogue box handle
63  *              R1 == icon number within dialogue
64  *              R2 == value to set in the icon
65  *
66  * On exit:     R2 == value actually set
67  *
68  * Use:         Writes the specified numeric value into the given writable
69  *              icon.  The icon must be a dbx control with numWrite type
70  *              for this to work.
71  */
72
73 extern routine numWrite_set;
74
75 /* --- numWrite_read --- *
76  *
77  * On entry:    R0 == dialogue box handle
78  *              R1 == icon handle
79  *
80  * On exit:     CC if icon contains a valid integer, and
81  *                R2 == value shown in the icon
82  *              else CS and
83  *                R2 == 0
84  *
85  * Use:         Reads the numeric value within the icon specifed.
86  */
87
88 extern routine numWrite_read;
89
90 /* --- numWrite_bump --- *
91  *
92  * On entry:    R0 == dialogue box handle
93  *              R1 == icon handle
94  *              R2 == increment to apply to it
95  *
96  * On exit:     R2 == updated value in the icon
97  *
98  * Use:         Adjusts the value in a writable icon by a given increment.
99  */
100
101 extern routine numWrite_bump;
102
103 /* --- Macro: NUMWRT --- *
104  *
105  * Arguments:   icon == icon handle of control
106  *              min == minimum representable value
107  *              max == maximum representable value
108  *
109  * Use:         Inserts a definition of a numerical writable icon into
110  *              a dbx dialogue definition table.
111  */
112
113 /*----- Constants ---------------------------------------------------------*/
114
115 #define numWrite_event (0x80000004)
116
117 #define numWrite_change (0)
118 #define numWrite_move (1)
119
120 /*----- That's all, folks -------------------------------------------------*/
121
122 #endif