#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 27 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 104 of file SkPDFTag.cpp.
105 {
106 if (!fAttrs)
109 attrDict->insertName("O", owner);
110 attrDict->insertScalar(
name, value);
111 fAttrs->appendObject(std::move(attrDict));
112}
static std::unique_ptr< SkPDFDict > SkPDFMakeDict(const char *type=nullptr)
static std::unique_ptr< SkPDFArray > SkPDFMakeArray(Args... args)
◆ appendFloatArray()
void SkPDF::AttributeList::appendFloatArray |
( |
const char * |
owner, |
|
|
const char * |
name, |
|
|
const std::vector< float > & |
value |
|
) |
| |
Definition at line 124 of file SkPDFTag.cpp.
125 {
126 if (!fAttrs)
129 attrDict->insertName("O", owner);
131 for (
float element :
value) {
132 pdfArray->appendScalar(element);
133 }
134 attrDict->insertObject(
name, std::move(pdfArray));
135 fAttrs->appendObject(std::move(attrDict));
136}
◆ appendInt()
void SkPDF::AttributeList::appendInt |
( |
const char * |
owner, |
|
|
const char * |
name, |
|
|
int |
value |
|
) |
| |
Definition at line 94 of file SkPDFTag.cpp.
95 {
96 if (!fAttrs)
99 attrDict->insertName("O", owner);
100 attrDict->insertInt(
name, value);
101 fAttrs->appendObject(std::move(attrDict));
102}
◆ appendName()
void SkPDF::AttributeList::appendName |
( |
const char * |
owner, |
|
|
const char * |
attrName, |
|
|
const char * |
value |
|
) |
| |
Definition at line 114 of file SkPDFTag.cpp.
115 {
116 if (!fAttrs)
119 attrDict->insertName("O", owner);
120 attrDict->insertName(
name, value);
121 fAttrs->appendObject(std::move(attrDict));
122}
◆ appendNodeIdArray()
void SkPDF::AttributeList::appendNodeIdArray |
( |
const char * |
owner, |
|
|
const char * |
attrName, |
|
|
const std::vector< int > & |
nodeIds |
|
) |
| |
Definition at line 138 of file SkPDFTag.cpp.
141 {
142 if (!fAttrs)
145 attrDict->insertName("O", owner);
147 for (int nodeId : nodeIds) {
149 pdfArray->appendByteString(idString);
150 }
151 attrDict->insertObject(
name, std::move(pdfArray));
152 fAttrs->appendObject(std::move(attrDict));
153}
static SkString nodeIdToString(int nodeId)
◆ ::SkPDFTagTree
The documentation for this class was generated from the following files: