OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2013 Google Inc. | |
3 | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #ifndef SkPdfType6ShadingDictionary_DEFINED | |
9 #define SkPdfType6ShadingDictionary_DEFINED | |
10 | |
11 #include "SkPdfShadingDictionary_autogen.h" | |
12 | |
13 // Additional entries specific to a type 6 shading dictionary | |
14 class SkPdfType6ShadingDictionary : public SkPdfShadingDictionary { | |
15 public: | |
16 public: | |
17 SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return this;} | |
18 const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {return t
his;} | |
19 | |
20 private: | |
21 SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return (SkPdfType1Sh
adingDictionary*)this;} | |
22 const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {return (
const SkPdfType1ShadingDictionary*)this;} | |
23 | |
24 SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return (SkPdfType2Sh
adingDictionary*)this;} | |
25 const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {return (
const SkPdfType2ShadingDictionary*)this;} | |
26 | |
27 SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return (SkPdfType3Sh
adingDictionary*)this;} | |
28 const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {return (
const SkPdfType3ShadingDictionary*)this;} | |
29 | |
30 SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return (SkPdfType4Sh
adingDictionary*)this;} | |
31 const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {return (
const SkPdfType4ShadingDictionary*)this;} | |
32 | |
33 SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return (SkPdfType5Sh
adingDictionary*)this;} | |
34 const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {return (
const SkPdfType5ShadingDictionary*)this;} | |
35 | |
36 public: | |
37 bool valid() const {return true;} | |
38 int64_t BitsPerCoordinate(SkPdfNativeDoc* doc); | |
39 bool has_BitsPerCoordinate() const; | |
40 int64_t BitsPerComponent(SkPdfNativeDoc* doc); | |
41 bool has_BitsPerComponent() const; | |
42 int64_t BitsPerFlag(SkPdfNativeDoc* doc); | |
43 bool has_BitsPerFlag() const; | |
44 SkPdfArray* Decode(SkPdfNativeDoc* doc); | |
45 bool has_Decode() const; | |
46 SkPdfFunction Function(SkPdfNativeDoc* doc); | |
47 bool has_Function() const; | |
48 }; | |
49 | |
50 #endif // SkPdfType6ShadingDictionary_DEFINED | |
OLD | NEW |