Bump version to 1.0.
[python/dscho.git] / Mac / Lib / lib-scriptpackages / StdSuites / QuickDraw_Graphics_Suite.py
blob74ba319c5289d5da4465bc8f51045779605c2178
1 """Suite QuickDraw Graphics Suite: A set of basic classes for graphics
2 Level 1, version 1
4 Generated from Macintosh HD:Systeemmap:Extensies: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'
191 # repeated property color the color
193 pixels = pixel
195 class pixel_map(aetools.ComponentItem):
196 """pixel map - A pixel map """
197 want = 'cpix'
199 pixel_maps = pixel_map
201 class polygon(aetools.ComponentItem):
202 """polygon - A polygon """
203 want = 'cpgn'
204 class point_list(aetools.NProperty):
205 """point list - the list of points that define the polygon """
206 which = 'ptlt'
207 want = 'QDpt'
209 polygons = polygon
211 class rectangle(aetools.ComponentItem):
212 """rectangle - A rectangle """
213 want = 'crec'
215 rectangles = rectangle
217 class rounded_rectangle(aetools.ComponentItem):
218 """rounded rectangle - A rounded rectangle """
219 want = 'crrc'
220 class corner_curve_height(aetools.NProperty):
221 """corner curve height - the height of the oval used to define the shape of the rounded corners """
222 which = 'pchd'
223 want = 'shor'
224 class corner_curve_width(aetools.NProperty):
225 """corner curve width - the width of the oval used to define the shape of the rounded corners """
226 which = 'pcwd'
227 want = 'shor'
229 rounded_rectangles = rounded_rectangle
230 arc._propdict = {
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._elemdict = {
244 drawing_area._propdict = {
245 'background_color' : background_color,
246 'background_pattern' : background_pattern,
247 'color_table' : color_table,
248 'ordering' : ordering,
249 'name' : name,
250 'default_location' : default_location,
251 'pixel_depth' : pixel_depth,
252 'writing_code' : writing_code,
253 'text_color' : text_color,
254 'default_font' : default_font,
255 'default_size' : default_size,
256 'style' : style,
257 'update_on_change' : update_on_change,
259 drawing_area._elemdict = {
261 graphic_line._propdict = {
262 'start_point' : start_point,
263 'end_point' : end_point,
264 'dash_style' : dash_style,
265 'arrow_style' : arrow_style,
267 graphic_line._elemdict = {
269 graphic_object._propdict = {
271 graphic_object._elemdict = {
273 graphic_shape._propdict = {
275 graphic_shape._elemdict = {
277 graphic_text._propdict = {
278 'color' : color,
279 'font' : font,
280 'size' : size,
281 'uniform_styles' : uniform_styles,
283 graphic_text._elemdict = {
285 graphic_group._propdict = {
287 graphic_group._elemdict = {
289 oval._propdict = {
291 oval._elemdict = {
293 pixel._propdict = {
294 'color' : color,
296 pixel._elemdict = {
298 pixel_map._propdict = {
300 pixel_map._elemdict = {
302 polygon._propdict = {
303 'point_list' : point_list,
305 polygon._elemdict = {
307 rectangle._propdict = {
309 rectangle._elemdict = {
311 rounded_rectangle._propdict = {
312 'corner_curve_height' : corner_curve_height,
313 'corner_curve_width' : corner_curve_width,
315 rounded_rectangle._elemdict = {
317 _Enum_tran = {
318 'copy_pixels' : 'cpy ', #
319 'not_copy_pixels' : 'ncpy', #
320 'or_pixels' : 'or ', #
321 'not_or_pixels' : 'ntor', #
322 'bic_pixels' : 'bic ', #
323 'not_bic_pixels' : 'nbic', #
324 'xor_pixels' : 'xor ', #
325 'not_xor_pixels' : 'nxor', #
326 'add_over_pixels' : 'addo', #
327 'add_pin_pixels' : 'addp', #
328 'sub_over_pixels' : 'subo', #
329 'sub_pin_pixels' : 'subp', #
330 'ad_max_pixels' : 'admx', #
331 'ad_min_pixels' : 'admn', #
332 'blend_pixels' : 'blnd', #
335 _Enum_arro = {
336 'no_arrow' : 'arno', # No arrow on line
337 'arrow_at_start' : 'arst', # Arrow at start of line
338 'arrow_at_end' : 'aren', # Arrow at end of line
339 'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
344 # Indices of types declared in this module
346 _classdeclarations = {
347 'crec' : rectangle,
348 'cpix' : pixel_map,
349 'carc' : arc,
350 'cgsh' : graphic_shape,
351 'cpxl' : pixel,
352 'crrc' : rounded_rectangle,
353 'cpgn' : polygon,
354 'cdrw' : drawing_area,
355 'cgob' : graphic_object,
356 'glin' : graphic_line,
357 'cgtx' : graphic_text,
358 'covl' : oval,
359 'cpic' : graphic_group,
362 _propdeclarations = {
363 'pend' : end_point,
364 'pupd' : update_on_change,
365 'pstp' : start_point,
366 'pdrt' : definition_rect,
367 'pnam' : name,
368 'pbcl' : background_color,
369 'pptm' : transfer_mode,
370 'pnel' : default_location,
371 'pdpt' : pixel_depth,
372 'gobs' : ordering,
373 'ustl' : uniform_styles,
374 'ptlt' : point_list,
375 'pdst' : dash_style,
376 'psct' : writing_code,
377 'txst' : style,
378 'font' : font,
379 'pchd' : corner_curve_height,
380 'arro' : arrow_style,
381 'ppwd' : pen_width,
382 'ptps' : default_size,
383 'ppcl' : pen_color,
384 'ptxf' : default_font,
385 'pcwd' : corner_curve_width,
386 'ptxc' : text_color,
387 'cltb' : color_table,
388 'pppa' : pen_pattern,
389 'pang' : start_angle,
390 'flpt' : fill_pattern,
391 'colr' : color,
392 'pbnd' : bounds,
393 'ptsz' : size,
394 'parc' : arc_angle,
395 'flcl' : fill_color,
396 'pbpt' : background_pattern,
399 _compdeclarations = {
402 _enumdeclarations = {
403 'tran' : _Enum_tran,
404 'arro' : _Enum_arro,