From 8edb46702b372b6e672d0ac8f810e151e1aa5707 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 20 Mar 2025 21:02:55 +0100 Subject: Read/write subtitle variable Z. --- src/text.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/text.h') diff --git a/src/text.h b/src/text.h index 70dfa3a6..f3b6ecea 100644 --- a/src/text.h +++ b/src/text.h @@ -97,6 +97,10 @@ public: int64_t duration; }; + std::vector variable_z_positions() const { + return _variable_z_positions; + } + Time fade_up_time () const { return _fade_up_time; } @@ -128,6 +132,10 @@ public: _z_position = z; } + void set_variable_z_positions(std::vector z) { + _variable_z_positions = std::move(z); + } + void set_fade_up_time (Time t) { _fade_up_time = t; } @@ -148,6 +156,7 @@ protected: float v_position, VAlign v_align, float z_position, + std::vector variable_z, Time fade_up_time, Time fade_down_time ); @@ -165,11 +174,15 @@ protected: float _v_position = 0; VAlign _v_align = VAlign::CENTER; float _z_position = 0; + std::vector _variable_z_positions; Time _fade_up_time; Time _fade_down_time; }; +bool operator==(Text::VariableZPosition a, Text::VariableZPosition b); + + } -- cgit v1.2.3