Flutter Engine
The Flutter Engine
|
#include <SkPDFTypes.h>
Public Member Functions | |
SkPDFArray () | |
~SkPDFArray () override | |
void | emitObject (SkWStream *stream) const override |
size_t | size () const |
void | reserve (int length) |
void | appendInt (int32_t) |
void | appendColorComponent (uint8_t) |
void | appendBool (bool) |
void | appendScalar (SkScalar) |
void | appendName (const char[]) |
void | appendName (SkString) |
void | appendByteString (const char[]) |
void | appendTextString (const char[]) |
void | appendByteString (SkString) |
void | appendTextString (SkString) |
void | appendObject (std::unique_ptr< SkPDFObject > &&) |
void | appendRef (SkPDFIndirectReference) |
Public Member Functions inherited from SkPDFObject | |
SkPDFObject ()=default | |
virtual void | emitObject (SkWStream *stream) const =0 |
virtual | ~SkPDFObject ()=default |
An array object in a PDF.
Definition at line 12 of file SkDocument_PDF_None.cpp.
SkPDFArray::SkPDFArray | ( | ) |
|
override |
Definition at line 375 of file SkPDFTypes.cpp.
void SkPDFArray::appendBool | ( | bool | value | ) |
Definition at line 406 of file SkPDFTypes.cpp.
void SkPDFArray::appendByteString | ( | const char | value[] | ) |
Definition at line 430 of file SkPDFTypes.cpp.
void SkPDFArray::appendByteString | ( | SkString | value | ) |
Definition at line 422 of file SkPDFTypes.cpp.
void SkPDFArray::appendColorComponent | ( | uint8_t | value | ) |
Definition at line 402 of file SkPDFTypes.cpp.
void SkPDFArray::appendInt | ( | int32_t | value | ) |
Appends a value to the end of the array.
value | The value to add to the array. |
Definition at line 398 of file SkPDFTypes.cpp.
void SkPDFArray::appendName | ( | const char | name[] | ) |
Definition at line 414 of file SkPDFTypes.cpp.
void SkPDFArray::appendName | ( | SkString | name | ) |
Definition at line 418 of file SkPDFTypes.cpp.
void SkPDFArray::appendObject | ( | std::unique_ptr< SkPDFObject > && | objSp | ) |
Definition at line 438 of file SkPDFTypes.cpp.
void SkPDFArray::appendRef | ( | SkPDFIndirectReference | ref | ) |
Definition at line 442 of file SkPDFTypes.cpp.
void SkPDFArray::appendScalar | ( | SkScalar | value | ) |
Definition at line 410 of file SkPDFTypes.cpp.
void SkPDFArray::appendTextString | ( | const char | value[] | ) |
Definition at line 434 of file SkPDFTypes.cpp.
void SkPDFArray::appendTextString | ( | SkString | value | ) |
Definition at line 426 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 383 of file SkPDFTypes.cpp.
void SkPDFArray::reserve | ( | int | length | ) |
Preallocate space for the given number of entries.
length | The number of array slots to preallocate. |
Definition at line 379 of file SkPDFTypes.cpp.
size_t SkPDFArray::size | ( | ) | const |