Flutter Engine
The Flutter Engine
|
#include <SkPDFTypes.h>
Public Member Functions | |
SkPDFDict (const char type[]=nullptr) | |
~SkPDFDict () override | |
void | emitObject (SkWStream *stream) const override |
size_t | size () const |
void | reserve (int n) |
void | insertObject (const char key[], std::unique_ptr< SkPDFObject > &&) |
void | insertObject (SkString, std::unique_ptr< SkPDFObject > &&) |
void | insertRef (const char key[], SkPDFIndirectReference) |
void | insertRef (SkString, SkPDFIndirectReference) |
void | insertBool (const char key[], bool value) |
void | insertInt (const char key[], int32_t value) |
void | insertInt (const char key[], size_t value) |
void | insertScalar (const char key[], SkScalar value) |
void | insertColorComponentF (const char key[], SkScalar value) |
void | insertName (const char key[], const char nameValue[]) |
void | insertName (const char key[], SkString nameValue) |
void | insertByteString (const char key[], const char value[]) |
void | insertTextString (const char key[], const char value[]) |
void | insertByteString (const char key[], SkString value) |
void | insertTextString (const char key[], SkString value) |
void | insertUnion (const char key[], SkPDFUnion &&) |
Public Member Functions inherited from SkPDFObject | |
SkPDFObject ()=default | |
virtual | ~SkPDFObject ()=default |
A dictionary object in a PDF.
Definition at line 146 of file SkPDFTypes.h.
|
explicit |
Create a PDF dictionary.
type | The value of the Type entry, nullptr for no type. |
Definition at line 444 of file SkPDFTypes.cpp.
|
override |
Definition at line 442 of file SkPDFTypes.cpp.
|
overridevirtual |
Subclasses must implement this method to print the object to the PDF file.
catalog | The object catalog to use. |
stream | The writable output stream to send the output to. |
Implements SkPDFObject.
Definition at line 450 of file SkPDFTypes.cpp.
void SkPDFDict::insertBool | ( | const char | key[], |
bool | value | ||
) |
Add the value to the dictionary with the given key.
key | The text of the key for this dictionary entry. |
value | The value for this dictionary entry. |
Definition at line 486 of file SkPDFTypes.cpp.
void SkPDFDict::insertByteString | ( | const char | key[], |
const char | value[] | ||
) |
Definition at line 514 of file SkPDFTypes.cpp.
void SkPDFDict::insertByteString | ( | const char | key[], |
SkString | value | ||
) |
Definition at line 522 of file SkPDFTypes.cpp.
void SkPDFDict::insertColorComponentF | ( | const char | key[], |
SkScalar | value | ||
) |
Definition at line 498 of file SkPDFTypes.cpp.
void SkPDFDict::insertInt | ( | const char | key[], |
int32_t | value | ||
) |
Definition at line 490 of file SkPDFTypes.cpp.
void SkPDFDict::insertInt | ( | const char | key[], |
size_t | value | ||
) |
Definition at line 494 of file SkPDFTypes.cpp.
void SkPDFDict::insertName | ( | const char | key[], |
const char | nameValue[] | ||
) |
Definition at line 506 of file SkPDFTypes.cpp.
void SkPDFDict::insertName | ( | const char | key[], |
SkString | nameValue | ||
) |
Definition at line 510 of file SkPDFTypes.cpp.
void SkPDFDict::insertObject | ( | const char | key[], |
std::unique_ptr< SkPDFObject > && | objSp | ||
) |
Add the value to the dictionary with the given key.
key | The text of the key for this dictionary entry. |
value | The value for this dictionary entry. |
Definition at line 478 of file SkPDFTypes.cpp.
void SkPDFDict::insertObject | ( | SkString | key, |
std::unique_ptr< SkPDFObject > && | objSp | ||
) |
Definition at line 481 of file SkPDFTypes.cpp.
void SkPDFDict::insertRef | ( | const char | key[], |
SkPDFIndirectReference | ref | ||
) |
Definition at line 470 of file SkPDFTypes.cpp.
void SkPDFDict::insertRef | ( | SkString | key, |
SkPDFIndirectReference | ref | ||
) |
Definition at line 474 of file SkPDFTypes.cpp.
void SkPDFDict::insertScalar | ( | const char | key[], |
SkScalar | value | ||
) |
Definition at line 502 of file SkPDFTypes.cpp.
void SkPDFDict::insertTextString | ( | const char | key[], |
const char | value[] | ||
) |
Definition at line 518 of file SkPDFTypes.cpp.
void SkPDFDict::insertTextString | ( | const char | key[], |
SkString | value | ||
) |
Definition at line 526 of file SkPDFTypes.cpp.
void SkPDFDict::insertUnion | ( | const char | key[], |
SkPDFUnion && | value | ||
) |
Definition at line 530 of file SkPDFTypes.cpp.
void SkPDFDict::reserve | ( | int | n | ) |
Preallocate space for n key-value pairs
Definition at line 466 of file SkPDFTypes.cpp.
size_t SkPDFDict::size | ( | ) | const |
The size of the dictionary.
Definition at line 464 of file SkPDFTypes.cpp.