← Back
Editing: pathobject.cpython-311.pyc
� �t�ai � �@ � d Z dZddlmZ ddlmZ G d� d� � ZdS )z3.3.0z� PDFPathObject is an efficient way to draw paths on a Canvas. Do not instantiate directly, obtain one from the Canvas instead. Progress Reports: 8.83, 2000-01-13, gmcm: created from pdfgen.py � )�pdfgeom)�fp_strc �n � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zd� Z dd�Z dd�Zd � Zd� Z dd�Zd� Zd� Zd� ZdS )� PDFPathObjecta: Represents a graphic path. There are certain 'modes' to PDF drawing, and making a separate object to expose Path operations ensures they are completed with no run-time overhead. Ask the Canvas for a PDFPath with getNewPathObject(); moveto/lineto/ curveto wherever you want; add whole shapes; and then add it back into the canvas with one of the relevant operators. Path objects are probably not long, so we pack onto one line the code argument allows a canvas to get the operations appended directly so avoiding the final getCode Nc �@ � |g f|d u | _ | j | _ d S �N)�_code�_init_code_append�_code_append)�self�codes �=/usr/lib/python3/dist-packages/reportlab/pdfgen/pathobject.py�__init__zPDFPathObject.__init__ s'