(self)
| 2500 | return [Op.gsave] |
| 2501 | |
| 2502 | def pop(self): |
| 2503 | assert self.parent is not None |
| 2504 | self.copy_properties(self.parent) |
| 2505 | self.parent = self.parent.parent |
| 2506 | return [Op.grestore] |
| 2507 | |
| 2508 | def clip_cmd(self, cliprect, clippath): |
| 2509 | """Set clip rectangle. Calls `.pop()` and `.push()`.""" |