本文整理汇总了C++中SkPdfNativeObject::isInteger方法的典型用法代码示例。如果您正苦于以下问题:C++ SkPdfNativeObject::isInteger方法的具体用法?C++ SkPdfNativeObject::isInteger怎么用?C++ SkPdfNativeObject::isInteger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkPdfNativeObject
的用法示例。
在下文中一共展示了SkPdfNativeObject::isInteger方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Size
int64_t SkPdfFileTrailerDictionary::Size(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Size", "");
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;
}
示例2: Prev
int64_t SkPdfFileTrailerDictionary::Prev(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Prev", "");
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 default value for optional fields
return 0;
}
示例3: get
int64_t SkPdfType4ShadingDictionary::BitsPerComponent(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("BitsPerComponent", "");
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;
}
示例4: EncryptionRevision
int64_t SkPdfEncryptedEmbeddedFileStreamDictionary::EncryptionRevision(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("EncryptionRevision", "");
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 default value for optional fields
return 0;
}
示例5: ParentTreeNextKey
int64_t SkPdfStructureTreeRootDictionary::ParentTreeNextKey(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("ParentTreeNextKey", "");
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 default value for optional fields
return 0;
}
示例6: EarlyChange
int64_t SkPdfLzwdecodeAndFlatedecodeFiltersDictionary::EarlyChange(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("EarlyChange", "");
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 default value for optional fields
return 0;
}
示例7: TP
int64_t SkPdfAppearanceCharacteristicsDictionary::TP(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("TP", "");
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 default value for optional fields
return 0;
}
示例8: isRAInteger
bool SkPdfWebCaptureImageSetDictionary::isRAInteger(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("R", "");
if (doc) {ret = doc->resolveReference(ret);}
return ret != NULL && ret->isInteger();
}
示例9: isBAInteger
bool SkPdfThreadActionDictionary::isBAInteger(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("B", "");
if (doc) {ret = doc->resolveReference(ret);}
return ret != NULL && ret->isInteger();
}