Home | History | Annotate | Download | only in pens

Lines Matching full:bounds

13 	"""Pen to calculate the "control bounds" of a shape. This is the
18 When the shape has been drawn, the bounds are available as the
19 'bounds' attribute of the pen object. It's a 4-tuple:
25 self.bounds = None
28 bounds = self.bounds
29 if bounds:
30 self.bounds = updateBounds(bounds, pt)
33 self.bounds = (x, y, x, y)
36 self.bounds = updateBounds(self.bounds, pt)
39 bounds = self.bounds
40 bounds = updateBounds(bounds, bcp1)
41 bounds = updateBounds(bounds, bcp2)
42 bounds = updateBounds(bounds, pt)
43 self.bounds = bounds
46 bounds = self.bounds
47 bounds = updateBounds(bounds, bcp)
48 bounds = updateBounds(bounds, pt)
49 self.bounds = bounds
54 """Pen to calculate the bounds of a shape. It calculates the
55 correct bounds even when the shape contains curves that don't
57 than the "control bounds".
59 When the shape has been drawn, the bounds are available as the
60 'bounds' attribute of the pen object. It's a 4-tuple:
65 bounds = self.bounds
66 bounds = updateBounds(bounds, pt)
67 if not pointInRect(bcp1, bounds) or not pointInRect(bcp2, bounds):
68 bounds = unionRect(bounds, calcCubicBounds(
70 self.bounds = bounds
73 bounds = self.bounds
74 bounds = updateBounds(bounds, pt)
75 if not pointInRect(bcp, bounds):
76 bounds = unionRect(bounds, calcQuadraticBounds(
78 self.bounds = bounds
91 print(pen.bounds)
95 print(pen.bounds)