当前位置: 首页>>代码示例>>C++>>正文


C++ SkPdfNativeObject::isReference方法代码示例

本文整理汇总了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();
}
开发者ID:Adenilson,项目名称:skia,代码行数:7,代码来源:SkPdfType3ShadingDictionary_autogen.cpp

示例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;
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfType3FunctionDictionary_autogen.cpp

示例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;
}
开发者ID:Adenilson,项目名称:skia,代码行数:7,代码来源:SkPdfMovieActionDictionary_autogen.cpp

示例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;
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfInteractiveFormDictionary_autogen.cpp

示例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();
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfInteractiveFormDictionary_autogen.cpp

示例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();
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfFDFDictionary_autogen.cpp

示例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;
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfAppearanceDictionary_autogen.cpp

示例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();
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfType1PatternDictionary_autogen.cpp

示例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;
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfType1PatternDictionary_autogen.cpp

示例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();
}
开发者ID:Adenilson,项目名称:skia,代码行数:7,代码来源:SkPdfType4ShadingDictionary_autogen.cpp

示例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;
}
开发者ID:Adenilson,项目名称:skia,代码行数:7,代码来源:SkPdfEncryptionCommonDictionary_autogen.cpp

示例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();
}
开发者ID:Adenilson,项目名称:skia,代码行数:7,代码来源:SkPdfStandardStructureDictionary_autogen.cpp

示例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;
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfEmbeddedFileStreamDictionary_autogen.cpp

示例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();
}
开发者ID:venkatarajasekhar,项目名称:Qt,代码行数:7,代码来源:SkPdfEmbeddedFileStreamDictionary_autogen.cpp

示例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;
}
开发者ID:Adenilson,项目名称:skia,代码行数:7,代码来源:SkPdfWebCaptureImageSetDictionary_autogen.cpp


注:本文中的SkPdfNativeObject::isReference方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。