Index: experimental/PdfViewer/SkPdfType2ShadingDictionary_autogen.h |
=================================================================== |
--- experimental/PdfViewer/SkPdfType2ShadingDictionary_autogen.h (revision 9684) |
+++ experimental/PdfViewer/SkPdfType2ShadingDictionary_autogen.h (working copy) |
@@ -5,6 +5,7 @@ |
#include "SkPdfArray_autogen.h" |
#include "SkPdfShadingDictionary_autogen.h" |
+// Additional entries specific to a type 2 shading dictionary |
class SkPdfType2ShadingDictionary : public SkPdfShadingDictionary { |
public: |
virtual SkPdfObjectType getType() const { return kType2ShadingDictionary_SkPdfObjectType;} |
@@ -38,6 +39,14 @@ |
SkPdfType2ShadingDictionary& operator=(const SkPdfType2ShadingDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
+/** (Required) An array of four numbers [ x0 y0 x1 y1 ] specifying the starting and |
+ * ending coordinates of the axis, expressed in the shading's target coordinate |
+ * space. |
+**/ |
+ bool has_Coords() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coords", "", NULL)); |
+ } |
+ |
SkPdfArray Coords() const { |
SkPdfArray ret; |
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coords", "", &ret)) return ret; |
@@ -45,6 +54,16 @@ |
return SkPdfArray(); |
} |
+/** (Optional) An array of two numbers [ t0 t1 ] specifying the limiting values of a |
+ * parametric variable t. The variable is considered to vary linearly between these |
+ * two values as the color gradient varies between the starting and ending points of |
+ * the axis. The variable t becomes the input argument to the color function(s). |
+ * Default value: [0.0 1.0]. |
+**/ |
+ bool has_Domain() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", NULL)); |
+ } |
+ |
SkPdfArray Domain() const { |
SkPdfArray ret; |
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domain", "", &ret)) return ret; |
@@ -52,6 +71,17 @@ |
return SkPdfArray(); |
} |
+/** (Required) A 1-in, n-out function or an array of n 1-in, 1-out functions (where n |
+ * is the number of color components in the shading dictionary's color space). The |
+ * function(s) are called with values of the parametric variable t in the domain de- |
+ * fined by the Domain entry. Each function's domain must be a superset of that of |
+ * the shading dictionary. If the value returned by the function for a given color |
+ * component is out of range, it will be adjusted to the nearest valid value. |
+**/ |
+ bool has_Function() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); |
+ } |
+ |
SkPdfFunction Function() const { |
SkPdfFunction ret; |
if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; |
@@ -59,6 +89,14 @@ |
return SkPdfFunction(); |
} |
+/** (Optional) An array of two boolean values specifying whether to extend the |
+ * shading beyond the starting and ending points of the axis, respectively. Default |
+ * value: [false false]. |
+**/ |
+ bool has_Extend() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Extend", "", NULL)); |
+ } |
+ |
SkPdfArray Extend() const { |
SkPdfArray ret; |
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Extend", "", &ret)) return ret; |