Shaka Packager SDK
Public Member Functions | Public Attributes | List of all members
shaka::media::TextFragment Struct Reference

#include <text_sample.h>

Public Member Functions

 TextFragment (const TextFragmentStyle &style, const std::vector< TextFragment > &sub_fragments)
 
 TextFragment (const TextFragmentStyle &style, const char *body)
 
 TextFragment (const TextFragmentStyle &style, const std::string &body)
 
 TextFragment (const TextFragmentStyle &style, const std::vector< uint8_t > &image)
 
 TextFragment (const TextFragmentStyle &style, bool newline)
 
bool is_empty () const
 

Public Attributes

TextFragmentStyle style
 
std::vector< TextFragmentsub_fragments
 
std::string body
 
std::vector< uint8_t > image
 PNG image data.
 
bool newline = false
 

Detailed Description

Represents a recursive structure of styled blocks of text. Only one of sub_fragments, body, image, or newline will be set.

Definition at line 92 of file text_sample.h.


The documentation for this struct was generated from the following files: