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 void | emitObject (SkWStream *stream) const =0 |
virtual | ~SkPDFObject ()=default |
A dictionary object in a PDF.
Definition at line 136 of file SkPDFTypes.h.
|
explicit |
Create a PDF dictionary.
type | The value of the Type entry, nullptr for no type. |
Definition at line 450 of file SkPDFTypes.cpp.
|
override |
Definition at line 448 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 456 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 492 of file SkPDFTypes.cpp.
void SkPDFDict::insertByteString | ( | const char | key[], |
const char | value[] | ||
) |
Definition at line 520 of file SkPDFTypes.cpp.
void SkPDFDict::insertByteString | ( | const char | key[], |
SkString | value | ||
) |
Definition at line 528 of file SkPDFTypes.cpp.
void SkPDFDict::insertColorComponentF | ( | const char | key[], |
SkScalar | value | ||
) |
Definition at line 504 of file SkPDFTypes.cpp.
void SkPDFDict::insertInt | ( | const char | key[], |
int32_t | value | ||
) |
Definition at line 496 of file SkPDFTypes.cpp.
void SkPDFDict::insertInt | ( | const char | key[], |
size_t | value | ||
) |
Definition at line 500 of file SkPDFTypes.cpp.
void SkPDFDict::insertName | ( | const char | key[], |
const char | nameValue[] | ||
) |
Definition at line 512 of file SkPDFTypes.cpp.
void SkPDFDict::insertName | ( | const char | key[], |
SkString | nameValue | ||
) |
Definition at line 516 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 484 of file SkPDFTypes.cpp.
void SkPDFDict::insertObject | ( | SkString | key, |
std::unique_ptr< SkPDFObject > && | objSp | ||
) |
Definition at line 487 of file SkPDFTypes.cpp.
void SkPDFDict::insertRef | ( | const char | key[], |
SkPDFIndirectReference | ref | ||
) |
Definition at line 476 of file SkPDFTypes.cpp.
void SkPDFDict::insertRef | ( | SkString | key, |
SkPDFIndirectReference | ref | ||
) |
Definition at line 480 of file SkPDFTypes.cpp.
void SkPDFDict::insertScalar | ( | const char | key[], |
SkScalar | value | ||
) |
Definition at line 508 of file SkPDFTypes.cpp.
void SkPDFDict::insertTextString | ( | const char | key[], |
const char | value[] | ||
) |
Definition at line 524 of file SkPDFTypes.cpp.
void SkPDFDict::insertTextString | ( | const char | key[], |
SkString | value | ||
) |
Definition at line 532 of file SkPDFTypes.cpp.
void SkPDFDict::insertUnion | ( | const char | key[], |
SkPDFUnion && | value | ||
) |
Definition at line 536 of file SkPDFTypes.cpp.
void SkPDFDict::reserve | ( | int | n | ) |
Preallocate space for n key-value pairs
Definition at line 472 of file SkPDFTypes.cpp.
size_t SkPDFDict::size | ( | ) | const |
The size of the dictionary.
Definition at line 470 of file SkPDFTypes.cpp.