diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-16 10:35:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-16 10:35:44 +0000 |
| commit | ee03fd414e2c6e3dd398107ceb4ee365ff427adc (patch) | |
| tree | ff1450b622a1dbbee751bcbe5b829c21f8d144c6 /src/subtitle_asset.h | |
| parent | d67d3fc2281c7d83ff2a4e3913f63022bd5f8f16 (diff) | |
Support horizontal alignment specification in subtitles.
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index a5014307..335b9f37 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -47,6 +47,7 @@ public: Time out, float v_position, VAlign v_align, + HAlign h_align, std::string text, Effect effect, Color effect_color, @@ -90,6 +91,10 @@ public: return _v_align; } + HAlign h_align () const { + return _h_align; + } + Effect effect () const { return _effect; } @@ -127,6 +132,7 @@ private: */ float _v_position; VAlign _v_align; + HAlign _h_align; std::string _text; Effect _effect; Color _effect_color; |
