diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-03 23:32:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-03 23:32:48 +0100 |
| commit | e1f53890da6e4be2555a9e17a52edcc03d53656b (patch) | |
| tree | ff148f4d8dc54b1a09fa21ca743fce261f01c021 /src/subtitle_string.h | |
| parent | 47b52fb54f302d5faf93a19ae2fe28fa610f96ca (diff) | |
Basic HAlign / HPosition support.
Diffstat (limited to 'src/subtitle_string.h')
| -rw-r--r-- | src/subtitle_string.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/subtitle_string.h b/src/subtitle_string.h index cf787e64..bb768397 100644 --- a/src/subtitle_string.h +++ b/src/subtitle_string.h @@ -45,6 +45,8 @@ public: float aspect_adjust, Time in, Time out, + float h_position, + HAlign h_align, float v_position, VAlign v_align, std::string text, @@ -79,6 +81,14 @@ public: return _text; } + float h_position () const { + return _h_position; + } + + HAlign h_align () const { + return _h_align; + } + /** @return vertical position as a proportion of the screen height from the top * (between 0 and 1) */ @@ -149,6 +159,11 @@ private: float _aspect_adjust; Time _in; Time _out; + /** Horizontal position as a proportion of the screen width from the _h_align + * (between 0 and 1) + */ + float _h_position; + HAlign _h_align; /** Vertical position as a proportion of the screen height from the _v_align * (between 0 and 1) */ |
