MCPcopy Index your code
hub / github.com/clips/pattern / PDFGraphicState

Class PDFGraphicState

pattern/web/pdf/pdfinterp.py:93–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91## PDFGraphicState
92##
93class PDFGraphicState(object):
94
95 def __init__(self):
96 self.linewidth = 0
97 self.linecap = None
98 self.linejoin = None
99 self.miterlimit = None
100 self.dash = None
101 self.intent = None
102 self.flatness = None
103 return
104
105 def copy(self):
106 obj = PDFGraphicState()
107 obj.linewidth = self.linewidth
108 obj.linecap = self.linecap
109 obj.linejoin = self.linejoin
110 obj.miterlimit = self.miterlimit
111 obj.dash = self.dash
112 obj.intent = self.intent
113 obj.flatness = self.flatness
114 return obj
115
116 def __repr__(self):
117 return ('<PDFGraphicState: linewidth=%r, linecap=%r, linejoin=%r, '
118 ' miterlimit=%r, dash=%r, intent=%r, flatness=%r>' %
119 (self.linewidth, self.linecap, self.linejoin,
120 self.miterlimit, self.dash, self.intent, self.flatness))
121
122## Resource Manager
123##

Callers 2

copyMethod · 0.85
init_stateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…