Lines Matching full:commands
22 """Base class for pens that record the commands they are called with."""
25 self.commands = []
28 """Return the pen commands as a string of python code."""
29 return _repr_pen_commands(self.commands)
32 self.commands.append(('addComponent', (glyphName, transformation), kwargs))
36 """A SegmentPen that records the commands it's called with."""
39 self.commands.append(('moveTo', (pt,), {}))
42 self.commands.append(('lineTo', (pt,), {}))
45 self.commands.append(('curveTo', points, {}))
48 self.commands.append(('qCurveTo', points, {}))
51 self.commands.append(('closePath', tuple(), {}))
54 self.commands.append(('endPath', tuple(), {}))
58 """A PointPen that records the commands it's called with."""
61 self.commands.append(('beginPath', tuple(), kwargs))
64 self.commands.append(('endPath', tuple(), {}))
70 self.commands.append(('addPoint', (pt,), kwargs))
76 SegmentPen commands required to draw it.
87 self.outline = self._pen.commands
104 """Use another SegmentPen to replay the glyph's outline commands."""
110 """Use another PointPen to replay the glyph's outline commands,
160 """Return commands making up the glyph's outline as a string."""
167 PointPen commands required to draw it.
186 """Use another SegmentPen to replay the glyph's outline commands,
193 """Use another PointPen to replay the glyph's outline commands."""
199 def _repr_pen_commands(commands): argument
224 for cmd, args, kwargs in commands: