summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/qd/qdedit.py
blob: d9e4a152ef66a8517251ea70198bbad598b71103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
f = Function(void, 'SetPort',
	(GrafPtr, 'thePort', InMode),
)
functions.append(f)

f = Function(CursHandle, 'GetCursor',
    (short, 'cursorID', InMode),
)
functions.append(f)

f = Function(void, 'SetCursor',
    (Cursor_ptr, 'crsr', InMode),
)
functions.append(f)

f = Function(void, 'ShowCursor',
)
functions.append(f)

f = Function(void, 'LineTo',
    (short, 'h', InMode),
    (short, 'v', InMode),
)
functions.append(f)

f = Function(void, 'SetRect',
    (Rect, 'r', OutMode),
    (short, 'left', InMode),
    (short, 'top', InMode),
    (short, 'right', InMode),
    (short, 'bottom', InMode),
)
functions.append(f)

f = Function(void, 'OffsetRect',
    (Rect, 'r', InOutMode),
    (short, 'dh', InMode),
    (short, 'dv', InMode),
)
functions.append(f)

f = Function(void, 'InsetRect',
    (Rect, 'r', InOutMode),
    (short, 'dh', InMode),
    (short, 'dv', InMode),
)
functions.append(f)

f = Function(void, 'UnionRect',
    (Rect_ptr, 'src1', InMode),
    (Rect_ptr, 'src2', InMode),
    (Rect, 'dstRect', OutMode),
)
functions.append(f)

f = Function(Boolean, 'EqualRect',
    (Rect_ptr, 'rect1', InMode),
    (Rect_ptr, 'rect2', InMode),
)
functions.append(f)

f = Function(void, 'FrameRect',
    (Rect_ptr, 'r', InMode),
)
functions.append(f)

f = Function(void, 'InvertRect',
    (Rect_ptr, 'r', InMode),
)
functions.append(f)

f = Function(void, 'FillRect',
    (Rect_ptr, 'r', InMode),
    (Pattern_ptr, 'pat', InMode),
)
functions.append(f)

f = Function(void, 'CopyRgn',
    (RgnHandle, 'srcRgn', InMode),
    (RgnHandle, 'dstRgn', InMode),
)
functions.append(f)

f = Function(void, 'SetRectRgn',
    (RgnHandle, 'rgn', InMode),
    (short, 'left', InMode),
    (short, 'top', InMode),
    (short, 'right', InMode),
    (short, 'bottom', InMode),
)
functions.append(f)

f = Function(void, 'OffsetRgn',
    (RgnHandle, 'rgn', InMode),
    (short, 'dh', InMode),
    (short, 'dv', InMode),
)
functions.append(f)

f = Function(void, 'UnionRgn',
    (RgnHandle, 'srcRgnA', InMode),
    (RgnHandle, 'srcRgnB', InMode),
    (RgnHandle, 'dstRgn', InMode),
)
functions.append(f)

f = Function(void, 'XorRgn',
    (RgnHandle, 'srcRgnA', InMode),
    (RgnHandle, 'srcRgnB', InMode),
    (RgnHandle, 'dstRgn', InMode),
)
functions.append(f)

f = Function(Boolean, 'EqualRgn',
    (RgnHandle, 'rgnA', InMode),
    (RgnHandle, 'rgnB', InMode),
)
functions.append(f)

f = Function(void, 'FrameRgn',
    (RgnHandle, 'rgn', InMode),
)
functions.append(f)

f = Function(void, 'PaintRgn',
    (RgnHandle, 'rgn', InMode),
)
functions.append(f)

f = Function(void, 'InvertRgn',
    (RgnHandle, 'rgn', InMode),
)
functions.append(f)

f = Function(void, 'FillRgn',
    (RgnHandle, 'rgn', InMode),
    (Pattern_ptr, 'pat', InMode),
)
functions.append(f)

f = Function(Boolean, 'GetPixel',
    (short, 'h', InMode),
    (short, 'v', InMode),
)
functions.append(f)

f = Function(Boolean, 'PtInRect',
    (Point, 'pt', InMode),
    (Rect_ptr, 'r', InMode),
)
functions.append(f)

f = Function(void, 'DrawText',
    (TextThingie, 'textBuf', InMode),
    (short, 'firstByte', InMode),
    (short, 'byteCount', InMode),
)
functions.append(f)