More installation info. Bump alpha version.
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / StdSuites / QuickDraw_Graphics_Suite.py
blob253cf0bc9e5f059c5261fd721368e3f696d65508
1 """Suite QuickDraw Graphics Suite: A set of basic classes for graphics
2 Level 1, version 1
4 Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'qdrw'
13 class QuickDraw_Graphics_Suite_Events:
15 pass
18 class arc(aetools.ComponentItem):
19 """arc - An arc """
20 want = 'carc'
21 class arc_angle(aetools.NProperty):
22 """arc angle - the angle of the arc in degrees """
23 which = 'parc'
24 want = 'fixd'
25 class bounds(aetools.NProperty):
26 """bounds - the smallest rectangle that contains the entire arc """
27 which = 'pbnd'
28 want = 'qdrt'
29 class definition_rect(aetools.NProperty):
30 """definition rect - the rectangle that contains the circle or oval used to define the arc """
31 which = 'pdrt'
32 want = 'qdrt'
33 class fill_color(aetools.NProperty):
34 """fill color - the fill color """
35 which = 'flcl'
36 want = 'cRGB'
37 class fill_pattern(aetools.NProperty):
38 """fill pattern - the fill pattern """
39 which = 'flpt'
40 want = 'cpix'
41 class pen_color(aetools.NProperty):
42 """pen color - the pen color """
43 which = 'ppcl'
44 want = 'cRGB'
45 class pen_pattern(aetools.NProperty):
46 """pen pattern - the pen pattern """
47 which = 'pppa'
48 want = 'cpix'
49 class pen_width(aetools.NProperty):
50 """pen width - the pen width """
51 which = 'ppwd'
52 want = 'shor'
53 class start_angle(aetools.NProperty):
54 """start angle - the angle that defines the start of the arc, in degrees """
55 which = 'pang'
56 want = 'fixd'
57 class transfer_mode(aetools.NProperty):
58 """transfer mode - the transfer mode """
59 which = 'pptm'
60 want = 'tran'
62 arcs = arc
64 class drawing_area(aetools.ComponentItem):
65 """drawing area - Container for graphics and supporting information """
66 want = 'cdrw'
67 class background_color(aetools.NProperty):
68 """background color - the color used to fill in unoccupied areas """
69 which = 'pbcl'
70 want = 'cRGB'
71 class background_pattern(aetools.NProperty):
72 """background pattern - the pattern used to fill in unoccupied areas """
73 which = 'pbpt'
74 want = 'cpix'
75 class color_table(aetools.NProperty):
76 """color table - the color table """
77 which = 'cltb'
78 want = 'clrt'
79 class ordering(aetools.NProperty):
80 """ordering - the ordered list of graphic objects in the drawing area """
81 which = 'gobs'
82 want = 'obj '
83 class name(aetools.NProperty):
84 """name - the name """
85 which = 'pnam'
86 want = 'itxt'
87 class default_location(aetools.NProperty):
88 """default location - the default location of each new graphic object """
89 which = 'pnel'
90 want = 'QDpt'
91 class pixel_depth(aetools.NProperty):
92 """pixel depth - the number of bits per pixel """
93 which = 'pdpt'
94 want = 'shor'
95 class writing_code(aetools.NProperty):
96 """writing code - the script system and language of text objects in the drawing area """
97 which = 'psct'
98 want = 'intl'
99 class text_color(aetools.NProperty):
100 """text color - the default color for text objects """
101 which = 'ptxc'
102 want = 'cRGB'
103 class default_font(aetools.NProperty):
104 """default font - the name of the default font for text objects """
105 which = 'ptxf'
106 want = 'itxt'
107 class default_size(aetools.NProperty):
108 """default size - the default size for text objects """
109 which = 'ptps'
110 want = 'fixd'
111 class style(aetools.NProperty):
112 """style - the default text style for text objects """
113 which = 'txst'
114 want = 'tsty'
115 class update_on_change(aetools.NProperty):
116 """update on change - Redraw after each change? """
117 which = 'pupd'
118 want = 'bool'
120 drawing_areas = drawing_area
122 class graphic_line(aetools.ComponentItem):
123 """graphic line - A graphic line """
124 want = 'glin'
125 class start_point(aetools.NProperty):
126 """start point - the starting point of the line """
127 which = 'pstp'
128 want = 'QDpt'
129 class end_point(aetools.NProperty):
130 """end point - the ending point of the line """
131 which = 'pend'
132 want = 'QDpt'
133 class dash_style(aetools.NProperty):
134 """dash style - the dash style """
135 which = 'pdst'
136 want = 'tdas'
137 class arrow_style(aetools.NProperty):
138 """arrow style - the arrow style """
139 which = 'arro'
140 want = 'arro'
142 graphic_lines = graphic_line
144 class graphic_object(aetools.ComponentItem):
145 """graphic object - A graphic object """
146 want = 'cgob'
148 graphic_objects = graphic_object
150 class graphic_shape(aetools.ComponentItem):
151 """graphic shape - A graphic shape """
152 want = 'cgsh'
154 graphic_shapes = graphic_shape
156 class graphic_text(aetools.ComponentItem):
157 """graphic text - A series of characters within a drawing area """
158 want = 'cgtx'
159 class color(aetools.NProperty):
160 """color - the color of the first character """
161 which = 'colr'
162 want = 'cRGB'
163 class font(aetools.NProperty):
164 """font - the name of the font of the first character """
165 which = 'font'
166 want = 'ctxt'
167 class size(aetools.NProperty):
168 """size - the size in points of the first character """
169 which = 'ptsz'
170 want = 'fixd'
171 class uniform_styles(aetools.NProperty):
172 """uniform styles - the text styles that are uniform throughout the text """
173 which = 'ustl'
174 want = 'tsty'
176 class graphic_group(aetools.ComponentItem):
177 """graphic group - Group of graphics """
178 want = 'cpic'
180 graphic_groups = graphic_group
182 class oval(aetools.ComponentItem):
183 """oval - An oval """
184 want = 'covl'
186 ovals = oval
188 class pixel(aetools.ComponentItem):
189 """pixel - A pixel """
190 want = 'cpxl'
192 pixels = pixel
194 class pixel_map(aetools.ComponentItem):
195 """pixel map - A pixel map """
196 want = 'cpix'
198 pixel_maps = pixel_map
200 class polygon(aetools.ComponentItem):
201 """polygon - A polygon """
202 want = 'cpgn'
203 class point_list(aetools.NProperty):
204 """point list - the list of points that define the polygon """
205 which = 'ptlt'
206 want = 'QDpt'
208 polygons = polygon
210 class rectangle(aetools.ComponentItem):
211 """rectangle - A rectangle """
212 want = 'crec'
214 rectangles = rectangle
216 class rounded_rectangle(aetools.ComponentItem):
217 """rounded rectangle - A rounded rectangle """
218 want = 'crrc'
219 class corner_curve_height(aetools.NProperty):
220 """corner curve height - the height of the oval used to define the shape of the rounded corners """
221 which = 'pchd'
222 want = 'shor'
223 class corner_curve_width(aetools.NProperty):
224 """corner curve width - the width of the oval used to define the shape of the rounded corners """
225 which = 'pcwd'
226 want = 'shor'
228 rounded_rectangles = rounded_rectangle
229 arc._superclassnames = []
230 arc._privpropdict = {
231 'arc_angle' : arc_angle,
232 'bounds' : bounds,
233 'definition_rect' : definition_rect,
234 'fill_color' : fill_color,
235 'fill_pattern' : fill_pattern,
236 'pen_color' : pen_color,
237 'pen_pattern' : pen_pattern,
238 'pen_width' : pen_width,
239 'start_angle' : start_angle,
240 'transfer_mode' : transfer_mode,
242 arc._privelemdict = {
244 drawing_area._superclassnames = []
245 drawing_area._privpropdict = {
246 'background_color' : background_color,
247 'background_pattern' : background_pattern,
248 'color_table' : color_table,
249 'ordering' : ordering,
250 'name' : name,
251 'default_location' : default_location,
252 'pixel_depth' : pixel_depth,
253 'writing_code' : writing_code,
254 'text_color' : text_color,
255 'default_font' : default_font,
256 'default_size' : default_size,
257 'style' : style,
258 'update_on_change' : update_on_change,
260 drawing_area._privelemdict = {
262 graphic_line._superclassnames = []
263 graphic_line._privpropdict = {
264 'start_point' : start_point,
265 'end_point' : end_point,
266 'dash_style' : dash_style,
267 'arrow_style' : arrow_style,
269 graphic_line._privelemdict = {
271 graphic_object._superclassnames = []
272 graphic_object._privpropdict = {
274 graphic_object._privelemdict = {
276 graphic_shape._superclassnames = []
277 graphic_shape._privpropdict = {
279 graphic_shape._privelemdict = {
281 graphic_text._superclassnames = []
282 graphic_text._privpropdict = {
283 'color' : color,
284 'font' : font,
285 'size' : size,
286 'uniform_styles' : uniform_styles,
288 graphic_text._privelemdict = {
290 graphic_group._superclassnames = []
291 graphic_group._privpropdict = {
293 graphic_group._privelemdict = {
295 oval._superclassnames = []
296 oval._privpropdict = {
298 oval._privelemdict = {
300 pixel._superclassnames = []
301 pixel._privpropdict = {
302 'color' : color,
304 pixel._privelemdict = {
306 pixel_map._superclassnames = []
307 pixel_map._privpropdict = {
309 pixel_map._privelemdict = {
311 polygon._superclassnames = []
312 polygon._privpropdict = {
313 'point_list' : point_list,
315 polygon._privelemdict = {
317 rectangle._superclassnames = []
318 rectangle._privpropdict = {
320 rectangle._privelemdict = {
322 rounded_rectangle._superclassnames = []
323 rounded_rectangle._privpropdict = {
324 'corner_curve_height' : corner_curve_height,
325 'corner_curve_width' : corner_curve_width,
327 rounded_rectangle._privelemdict = {
329 _Enum_tran = {
330 'copy_pixels' : 'cpy ', #
331 'not_copy_pixels' : 'ncpy', #
332 'or_pixels' : 'or ', #
333 'not_or_pixels' : 'ntor', #
334 'bic_pixels' : 'bic ', #
335 'not_bic_pixels' : 'nbic', #
336 'xor_pixels' : 'xor ', #
337 'not_xor_pixels' : 'nxor', #
338 'add_over_pixels' : 'addo', #
339 'add_pin_pixels' : 'addp', #
340 'sub_over_pixels' : 'subo', #
341 'sub_pin_pixels' : 'subp', #
342 'ad_max_pixels' : 'admx', #
343 'ad_min_pixels' : 'admn', #
344 'blend_pixels' : 'blnd', #
347 _Enum_arro = {
348 'no_arrow' : 'arno', # No arrow on line
349 'arrow_at_start' : 'arst', # Arrow at start of line
350 'arrow_at_end' : 'aren', # Arrow at end of line
351 'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
356 # Indices of types declared in this module
358 _classdeclarations = {
359 'cpic' : graphic_group,
360 'covl' : oval,
361 'cgtx' : graphic_text,
362 'cgsh' : graphic_shape,
363 'glin' : graphic_line,
364 'cgob' : graphic_object,
365 'cdrw' : drawing_area,
366 'cpgn' : polygon,
367 'cpxl' : pixel,
368 'crrc' : rounded_rectangle,
369 'carc' : arc,
370 'cpix' : pixel_map,
371 'crec' : rectangle,
374 _propdeclarations = {
375 'pbpt' : background_pattern,
376 'flcl' : fill_color,
377 'parc' : arc_angle,
378 'pbnd' : bounds,
379 'colr' : color,
380 'flpt' : fill_pattern,
381 'ustl' : uniform_styles,
382 'font' : font,
383 'pend' : end_point,
384 'pstp' : start_point,
385 'pang' : start_angle,
386 'pptm' : transfer_mode,
387 'cltb' : color_table,
388 'ptxc' : text_color,
389 'ptxf' : default_font,
390 'ppcl' : pen_color,
391 'ptps' : default_size,
392 'ppwd' : pen_width,
393 'arro' : arrow_style,
394 'pcwd' : corner_curve_width,
395 'txst' : style,
396 'psct' : writing_code,
397 'pdst' : dash_style,
398 'ptlt' : point_list,
399 'gobs' : ordering,
400 'pdpt' : pixel_depth,
401 'pnel' : default_location,
402 'pchd' : corner_curve_height,
403 'pbcl' : background_color,
404 'pnam' : name,
405 'pdrt' : definition_rect,
406 'ptsz' : size,
407 'pupd' : update_on_change,
408 'pppa' : pen_pattern,
411 _compdeclarations = {
414 _enumdeclarations = {
415 'arro' : _Enum_arro,
416 'tran' : _Enum_tran,