Shaka Packager SDK
|
Public Attributes | |
std::optional< TextNumber > | line |
std::optional< TextNumber > | position |
std::optional< TextNumber > | width |
std::optional< TextNumber > | height |
std::string | region |
The region to draw the cue in. | |
WritingDirection | writing_direction = WritingDirection::kHorizontal |
TextAlignment | text_alignment = TextAlignment::kCenter |
How to align the text within the cue box. | |
Definition at line 53 of file text_sample.h.
std::optional<TextNumber> shaka::media::TextSettings::height |
For horizontal cues, this is the height of the area to draw cues. For vertical cues, this is the width. Percent units are relative to the window.
Definition at line 67 of file text_sample.h.
std::optional<TextNumber> shaka::media::TextSettings::line |
The line offset of the cue. For horizontal cues, this is the vertical offset. Percent units are relative to the window.
Definition at line 56 of file text_sample.h.
std::optional<TextNumber> shaka::media::TextSettings::position |
The position offset of the cue. For horizontal cues, this is the horizontal offset. Percent units are relative to the window.
Definition at line 59 of file text_sample.h.
std::optional<TextNumber> shaka::media::TextSettings::width |
For horizontal cues, this is the width of the area to draw cues. For vertical cues, this is the height. Percent units are relative to the window.
Definition at line 63 of file text_sample.h.
WritingDirection shaka::media::TextSettings::writing_direction = WritingDirection::kHorizontal |
The direction to draw text. This is also used to determine how cues are positioned within the region.
Definition at line 74 of file text_sample.h.