本文整理汇总了C++中SkPdfNativeObject::isReference方法的典型用法代码示例。如果您正苦于以下问题:C++ SkPdfNativeObject::isReference方法的具体用法?C++ SkPdfNativeObject::isReference怎么用?C++ SkPdfNativeObject::isReference使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkPdfNativeObject
的用法示例。
在下文中一共展示了SkPdfNativeObject::isReference方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SkPdfFunction
SkPdfFunction SkPdfType3ShadingDictionary::Function(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Function", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isFunction()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->functionValue();
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return SkPdfFunction();
}
示例2: get
SkPdfArray* SkPdfType3FunctionDictionary::Encode(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Encode", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfArray*)ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}
示例3: Annot
SkPdfDictionary* SkPdfMovieActionDictionary::Annot(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Annot", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
// TODO(edisonn): warn about missing default value for optional fields
return NULL;
}
示例4: NeedAppearances
bool SkPdfInteractiveFormDictionary::NeedAppearances(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("NeedAppearances", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
// TODO(edisonn): warn about missing default value for optional fields
return false;
}
示例5: DA
SkString SkPdfInteractiveFormDictionary::DA(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("DA", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->stringValue2();
// TODO(edisonn): warn about missing default value for optional fields
return SkString();
}
示例6: F
SkPdfFileSpec SkPdfFDFDictionary::F(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("F", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference())) return ret->fileSpecValue();
// TODO(edisonn): warn about missing default value for optional fields
return SkPdfFileSpec();
}
示例7: getNAsDictionary
SkPdfDictionary* SkPdfAppearanceDictionary::getNAsDictionary(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("N", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return NULL;
}
示例8: I
SkMatrix SkPdfType1PatternDictionary::Matrix(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Matrix", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isMatrix()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->matrixValue();
// TODO(edisonn): warn about missing default value for optional fields
return SkMatrix::I();
}
示例9: get
int64_t SkPdfType1PatternDictionary::TilingType(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("TilingType", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->intValue();
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}
示例10: SkPdfFunction
SkPdfFunction SkPdfType4ShadingDictionary::Function(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Function", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isFunction()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->functionValue();
// TODO(edisonn): warn about missing default value for optional fields
return SkPdfFunction();
}
示例11: V
double SkPdfEncryptionCommonDictionary::V(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("V", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isNumber()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->numberValue();
// TODO(edisonn): warn about missing default value for optional fields
return 0;
}
示例12: WritingMode
SkString SkPdfStandardStructureDictionary::WritingMode(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("WritingMode", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
// TODO(edisonn): warn about missing default value for optional fields
return SkString();
}
示例13: Params
SkPdfDictionary* SkPdfEmbeddedFileStreamDictionary::Params(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Params", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
// TODO(edisonn): warn about missing default value for optional fields
return NULL;
}
示例14: Subtype
SkString SkPdfEmbeddedFileStreamDictionary::Subtype(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Subtype", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
// TODO(edisonn): warn about missing default value for optional fields
return SkString();
}
示例15: getRAsInteger
int64_t SkPdfWebCaptureImageSetDictionary::getRAsInteger(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("R", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->intValue();
// TODO(edisonn): warn about missing required field, assert for known good pdfs
return 0;
}