Lines Matching refs:rx
46 def _arc(self, c, rx, ry, x, y, large_arc): argument
47 self._add('%s%s,%s 0 %d 1 %s,%s' % (c, _ntos(rx), _ntos(ry), large_arc,
50 def A(self, rx, ry, x, y, large_arc=0): argument
51 self._arc('A', rx, ry, x, y, large_arc)
53 def a(self, rx, ry, x, y, large_arc=0): argument
54 self._arc('a', rx, ry, x, y, large_arc)
76 rx = float(rect.attrib.get('rx', 0))
79 rx = _prefer_non_zero(rx, ry)
80 ry = _prefer_non_zero(ry, rx)
84 self.M(x + rx, y)
85 self.H(x + w - rx)
86 if rx > 0:
87 self.A(rx, ry, x + w, y + ry)
89 if rx > 0:
90 self.A(rx, ry, x + w - rx, y + h)
91 self.H(x + rx)
92 if rx > 0:
93 self.A(rx, ry, x, y + h - ry)
95 if rx > 0:
96 self.A(rx, ry, x + rx, y)