1 """Suite QuickDraw Graphics Suite: A set of basic classes for graphics
4 Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
5 AETE/AEUT resource version 1/0, language 0, script 0
13 class QuickDraw_Graphics_Suite
:
18 class arc(aetools
.ComponentItem
):
21 class arc_angle(aetools
.NProperty
):
22 """arc angle - Angle of the arc in degrees"""
25 class bounds(aetools
.NProperty
):
26 """bounds - the smallest rectangle that contains the entire arc"""
29 class _class(aetools
.NProperty
):
30 """class - the class"""
33 class definition_rect(aetools
.NProperty
):
34 """definition rect - the rectangle that contains the circle or oval used to define the arc"""
37 class fill_color(aetools
.NProperty
):
38 """fill color - the fill color"""
41 class fill_pattern(aetools
.NProperty
):
42 """fill pattern - the fill pattern"""
45 class pen_color(aetools
.NProperty
):
46 """pen color - the pen color"""
49 class pen_pattern(aetools
.NProperty
):
50 """pen pattern - the pen pattern"""
53 class pen_width(aetools
.NProperty
):
54 """pen width - the pen width"""
57 class start_angle(aetools
.NProperty
):
58 """start angle - the angle that defines the start of the arc, in degrees"""
61 class transfer_mode(aetools
.NProperty
):
62 """transfer mode - the transfer mode"""
68 class drawing_area(aetools
.ComponentItem
):
69 """drawing area - Container for graphics and supporting information"""
71 class background_color(aetools
.NProperty
):
72 """background color - the color used to fill in unoccupied areas"""
75 class background_pattern(aetools
.NProperty
):
76 """background pattern - the pattern used to fill in unoccupied areas"""
79 class color_table(aetools
.NProperty
):
80 """color table - the color table"""
83 class ordering(aetools
.NProperty
):
84 """ordering - the ordered list of graphic objects in the drawing area"""
87 class name(aetools
.NProperty
):
91 class default_location(aetools
.NProperty
):
92 """default location - the default location of each new graphic object"""
95 class pixel_depth(aetools
.NProperty
):
96 """pixel depth - Bits per pixel"""
99 class writing_code(aetools
.NProperty
):
100 """writing code - the script system and language of text objects in the drawing area"""
103 class text_color(aetools
.NProperty
):
104 """text color - the default color for text objects"""
107 class default_font(aetools
.NProperty
):
108 """default font - the name of the default font for text objects"""
111 class default_size(aetools
.NProperty
):
112 """default size - the default size for text objects"""
115 class style(aetools
.NProperty
):
116 """style - the default text style for text objects"""
119 class update_on_change(aetools
.NProperty
):
120 """update on change - Redraw after each change?"""
124 drawing_areas
= drawing_area
126 class graphic_line(aetools
.ComponentItem
):
127 """graphic line - A graphic line"""
129 class dash_style(aetools
.NProperty
):
130 """dash style - the dash style"""
133 class end_point(aetools
.NProperty
):
134 """end point - the ending point of the line"""
137 class arrow_style(aetools
.NProperty
):
138 """arrow style - the arrow style"""
141 class start_point(aetools
.NProperty
):
142 """start point - the starting point of the line"""
146 graphic_lines
= graphic_line
148 class graphic_object(aetools
.ComponentItem
):
149 """graphic object - A graphic object"""
152 graphic_objects
= graphic_object
154 class graphic_shape(aetools
.ComponentItem
):
155 """graphic shape - A graphic shape"""
158 graphic_shapes
= graphic_shape
160 class graphic_text(aetools
.ComponentItem
):
161 """graphic text - A series of characters within a drawing area"""
163 class color(aetools
.NProperty
):
164 """color - the color of the first character"""
167 class font(aetools
.NProperty
):
168 """font - the name of the font of the first character"""
171 class size(aetools
.NProperty
):
172 """size - the size in points of the first character"""
175 class uniform_styles(aetools
.NProperty
):
176 """uniform styles - the text styles that are uniform throughout the text"""
180 class graphic_group(aetools
.ComponentItem
):
181 """graphic group - Group of graphics"""
184 graphic_groups
= graphic_group
186 class oval(aetools
.ComponentItem
):
192 class pixel(aetools
.ComponentItem
):
193 """pixel - A pixel"""
195 # repeated property color the color
199 class pixel_map(aetools
.ComponentItem
):
200 """pixel map - A pixel map"""
203 pixel_maps
= pixel_map
205 class polygon(aetools
.ComponentItem
):
206 """polygon - A polygon"""
208 class point_list(aetools
.NProperty
):
209 """point list - the list of points that define the polygon"""
215 class rectangle(aetools
.ComponentItem
):
216 """rectangle - A rectangle"""
219 rectangles
= rectangle
221 class rounded_rectangle(aetools
.ComponentItem
):
222 """rounded rectangle - A rounded rectangle"""
224 class corner_curve_height(aetools
.NProperty
):
225 """corner curve height - the height of the oval used to define the shape of the rounded corners"""
228 class corner_curve_width(aetools
.NProperty
):
229 """corner curve width - the width of the oval used to define the shape of the rounded corners"""
233 rounded_rectangles
= rounded_rectangle
235 'arc_angle' : arc_angle
,
238 'definition_rect' : definition_rect
,
239 'fill_color' : fill_color
,
240 'fill_pattern' : fill_pattern
,
241 'pen_color' : pen_color
,
242 'pen_pattern' : pen_pattern
,
243 'pen_width' : pen_width
,
244 'start_angle' : start_angle
,
245 'transfer_mode' : transfer_mode
,
249 drawing_area
._propdict
= {
250 'background_color' : background_color
,
251 'background_pattern' : background_pattern
,
252 'color_table' : color_table
,
253 'ordering' : ordering
,
255 'default_location' : default_location
,
256 'pixel_depth' : pixel_depth
,
257 'writing_code' : writing_code
,
258 'text_color' : text_color
,
259 'default_font' : default_font
,
260 'default_size' : default_size
,
262 'update_on_change' : update_on_change
,
264 drawing_area
._elemdict
= {
266 graphic_line
._propdict
= {
267 'dash_style' : dash_style
,
268 'end_point' : end_point
,
269 'arrow_style' : arrow_style
,
270 'start_point' : start_point
,
272 graphic_line
._elemdict
= {
274 graphic_object
._propdict
= {
276 graphic_object
._elemdict
= {
278 graphic_shape
._propdict
= {
280 graphic_shape
._elemdict
= {
282 graphic_text
._propdict
= {
286 'uniform_styles' : uniform_styles
,
288 graphic_text
._elemdict
= {
290 graphic_group
._propdict
= {
292 graphic_group
._elemdict
= {
303 pixel_map
._propdict
= {
305 pixel_map
._elemdict
= {
307 polygon
._propdict
= {
308 'point_list' : point_list
,
310 polygon
._elemdict
= {
312 rectangle
._propdict
= {
314 rectangle
._elemdict
= {
316 rounded_rectangle
._propdict
= {
317 'corner_curve_height' : corner_curve_height
,
318 'corner_curve_width' : corner_curve_width
,
320 rounded_rectangle
._elemdict
= {
323 'copy_pixels' : 'cpy ', #
324 'not_copy_pixels' : 'ncpy', #
325 'or_pixels' : 'or ', #
326 'not_or_pixels' : 'ntor', #
327 'bic_pixels' : 'bic ', #
328 'not_bic_pixels' : 'nbic', #
329 'xor_pixels' : 'xor ', #
330 'not_xor_pixels' : 'nxor', #
331 'add_over_pixels' : 'addo', #
332 'add_pin_pixels' : 'addp', #
333 'sub_over_pixels' : 'subo', #
334 'sub_pin_pixels' : 'subp', #
335 'ad_max_pixels' : 'admx', #
336 'ad_min_pixels' : 'admn', #
337 'blend_pixels' : 'blnd', #
341 'no_arrow' : 'arno', # No arrow on line
342 'arrow_at_start' : 'arst', # Arrow at start of line
343 'arrow_at_end' : 'aren', # Arrow at end of line
344 'arrow_at_both_ends' : 'arbo', # Arrow at both the start and the end of the line
349 # Indices of types declared in this module
351 _classdeclarations
= {
355 'cgsh' : graphic_shape
,
357 'crrc' : rounded_rectangle
,
359 'cdrw' : drawing_area
,
360 'cgob' : graphic_object
,
361 'glin' : graphic_line
,
362 'cgtx' : graphic_text
,
364 'cpic' : graphic_group
,
367 _propdeclarations
= {
369 'pupd' : update_on_change
,
370 'pstp' : start_point
,
371 'pdrt' : definition_rect
,
373 'pbcl' : background_color
,
374 'pptm' : transfer_mode
,
375 'pnel' : default_location
,
376 'pdpt' : pixel_depth
,
378 'ustl' : uniform_styles
,
381 'psct' : writing_code
,
384 'pchd' : corner_curve_height
,
387 'ptps' : default_size
,
389 'ptxf' : default_font
,
390 'pcwd' : corner_curve_width
,
392 'cltb' : color_table
,
393 'pppa' : pen_pattern
,
394 'pang' : start_angle
,
395 'flpt' : fill_pattern
,
397 'arro' : arrow_style
,
402 'pbpt' : background_pattern
,
405 _compdeclarations
= {
408 _enumdeclarations
= {