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