OLD | NEW |
| (Empty) |
1 | |
2 class PdfName: | |
3 def __init__(self, name, abr=''): | |
4 self.fName = name | |
5 self.fAbr = abr | |
6 | |
7 def toCpp(self): | |
8 return '\"' + self.fName + '\"' | |
9 | |
10 class PdfString: | |
11 def __init__(self, value): | |
12 self.fValue = value | |
13 | |
14 def toCpp(self): | |
15 return '\"' + self.fValue + '\"' | |
16 | |
17 class PdfInteger: | |
18 def __init__(self, value): | |
19 self.fValue = value | |
20 | |
21 def toCpp(self): | |
22 return str(self.fValue) | |
23 | |
24 class PdfNumber: | |
25 def __init__(self, value): | |
26 self.fValue = value | |
27 | |
28 def toCpp(self): | |
29 return str(self.fValue) | |
30 | |
31 class PdfString: | |
32 def __init__(self, value): | |
33 self.fValue = value | |
34 | |
35 def toCpp(self): | |
36 return self.fValue | |
37 | |
38 class PdfBoolean: | |
39 def __init__(self, value): | |
40 self.fValue = value | |
41 | |
42 def toCpp(self): | |
43 return self.fValue | |
44 | |
45 class CppNull: | |
46 def toCpp(self): | |
47 return 'NULL' | |
48 | |
49 class PdfDateNever: | |
50 def toCpp(self): | |
51 return 'SkPdfDate()' | |
52 | |
53 class FileSpecNone: | |
54 def toCpp(self): | |
55 return 'SkPdfFileSpec()' | |
56 | |
57 class EmptyRect: | |
58 def toCpp(self): | |
59 return 'SkRect::MakeEmpty()' | |
60 | |
61 class IdentityMatrix: | |
62 def toCpp(self): | |
63 return 'SkMatrix::I()' | |
64 | |
65 class PdfEmptyStream: | |
66 def toCpp(self): | |
67 return 'SkPdfStream()' | |
68 | |
69 class PdfArrayNone: | |
70 def toCpp(self): | |
71 return 'SkPdfArray()' | |
72 | |
73 class PdfFunctionNone: | |
74 def toCpp(self): | |
75 return 'SkPdfFunction()' | |
76 | |
77 class EmptyTree: | |
78 def toCpp(self): | |
79 return 'SkPdfTree()' | |
OLD | NEW |