Lines Matching full:commands
28 """Base class for pens that record the commands they are called with."""
31 self.commands = []
34 """Return the pen commands as a string of python code."""
35 return _repr_pen_commands(self.commands)
38 self.commands.append(("addComponent", (glyphName, transformation), kwargs))
42 """A SegmentPen that records the commands it's called with."""
45 self.commands.append(("moveTo", (pt,), {}))
48 self.commands.append(("lineTo", (pt,), {}))
51 self.commands.append(("curveTo", points, {}))
54 self.commands.append(("qCurveTo", points, {}))
57 self.commands.append(("closePath", tuple(), {}))
60 self.commands.append(("endPath", tuple(), {}))
64 """A PointPen that records the commands it's called with."""
67 self.commands.append(("beginPath", tuple(), kwargs))
70 self.commands.append(("endPath", tuple(), {}))
76 self.commands.append(("addPoint", (pt,), kwargs))
82 SegmentPen commands required to draw it.
93 self.outline = self._pen.commands
110 """Use another SegmentPen to replay the glyph's outline commands."""
116 """Use another PointPen to replay the glyph's outline commands,
165 """Return commands making up the glyph's outline as a string."""
172 PointPen commands required to draw it.
191 """Use another SegmentPen to replay the glyph's outline commands,
198 """Use another PointPen to replay the glyph's outline commands."""
204 def _repr_pen_commands(commands): argument
229 for cmd, args, kwargs in commands: