ยปCore Development>Code coverage>Lib/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py

Python code coverage for Lib/plat-mac/lib-scriptpackages/StdSuites/QuickDraw_Graphics_Suite.py

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