From e1f53890da6e4be2555a9e17a52edcc03d53656b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 3 Jun 2015 23:32:48 +0100 Subject: Basic HAlign / HPosition support. --- src/subtitle_string.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/subtitle_string.h') 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) */ -- cgit v1.2.3