#include <SkPDFDocument.h>
|
| AttributeList () |
|
| ~AttributeList () |
|
void | appendInt (const char *owner, const char *name, int value) |
|
void | appendFloat (const char *owner, const char *name, float value) |
|
void | appendName (const char *owner, const char *attrName, const char *value) |
|
void | appendFloatArray (const char *owner, const char *name, const std::vector< float > &value) |
|
void | appendNodeIdArray (const char *owner, const char *attrName, const std::vector< int > &nodeIds) |
|
Attributes for nodes in the PDF tree.
Definition at line 30 of file SkPDFDocument.h.
◆ AttributeList()
SkPDF::AttributeList::AttributeList |
( |
| ) |
|
|
default |
◆ ~AttributeList()
SkPDF::AttributeList::~AttributeList |
( |
| ) |
|
|
default |
◆ appendFloat()
void SkPDF::AttributeList::appendFloat |
( |
const char * |
owner, |
|
|
const char * |
name, |
|
|
float |
value |
|
) |
| |
Definition at line 113 of file SkPDFTag.cpp.
114 {
115 if (!fAttrs)
118 attrDict->insertName("O", owner);
120 fAttrs->appendObject(std::move(attrDict));
121}
static std::unique_ptr< SkPDFDict > SkPDFMakeDict(const char *type=nullptr)
static std::unique_ptr< SkPDFArray > SkPDFMakeArray(Args... args)
DEF_SWITCHES_START aot vmservice shared library name
◆ appendFloatArray()
void SkPDF::AttributeList::appendFloatArray |
( |
const char * |
owner, |
|
|
const char * |
name, |
|
|
const std::vector< float > & |
value |
|
) |
| |
Definition at line 133 of file SkPDFTag.cpp.
134 {
135 if (!fAttrs)
138 attrDict->insertName("O", owner);
140 for (
float element :
value) {
141 pdfArray->appendScalar(element);
142 }
143 attrDict->insertObject(
name, std::move(pdfArray));
144 fAttrs->appendObject(std::move(attrDict));
145}
◆ appendInt()
void SkPDF::AttributeList::appendInt |
( |
const char * |
owner, |
|
|
const char * |
name, |
|
|
int |
value |
|
) |
| |
Definition at line 103 of file SkPDFTag.cpp.
104 {
105 if (!fAttrs)
108 attrDict->insertName("O", owner);
110 fAttrs->appendObject(std::move(attrDict));
111}
◆ appendName()
void SkPDF::AttributeList::appendName |
( |
const char * |
owner, |
|
|
const char * |
attrName, |
|
|
const char * |
value |
|
) |
| |
Definition at line 123 of file SkPDFTag.cpp.
124 {
125 if (!fAttrs)
128 attrDict->insertName("O", owner);
130 fAttrs->appendObject(std::move(attrDict));
131}
◆ appendNodeIdArray()
void SkPDF::AttributeList::appendNodeIdArray |
( |
const char * |
owner, |
|
|
const char * |
attrName, |
|
|
const std::vector< int > & |
nodeIds |
|
) |
| |
Definition at line 147 of file SkPDFTag.cpp.
150 {
151 if (!fAttrs)
154 attrDict->insertName("O", owner);
156 for (int nodeId : nodeIds) {
158 pdfArray->appendByteString(idString);
159 }
160 attrDict->insertObject(
name, std::move(pdfArray));
161 fAttrs->appendObject(std::move(attrDict));
162}
static SkString nodeIdToString(int nodeId)
◆ ::SkPDFTagTree
The documentation for this class was generated from the following files: