diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-01-13 01:00:08 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-01-13 01:00:08 +0000 |
| commit | d54c8291f83bd9f2cf964ca0372f74734ccb0ae2 (patch) | |
| tree | c7a0b929c444476a6cc430dfb29193cbe181a9be /src/lib/subtitle_content.h | |
| parent | 9b1c6dd87c2a1b0b480a23da756d22c3bfedd9f1 (diff) | |
Forcing for fade in/out.
Diffstat (limited to 'src/lib/subtitle_content.h')
| -rw-r--r-- | src/lib/subtitle_content.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index 47b7b5cd9..58dc51510 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -81,8 +81,10 @@ public: void unset_effect_colour (); void set_line_spacing (double s); void set_fade_in (ContentTime); + void unset_fade_in (); void set_fade_out (ContentTime); void set_outline_width (int); + void unset_fade_out (); bool use () const { boost::mutex::scoped_lock lm (_mutex); @@ -144,12 +146,12 @@ public: return _line_spacing; } - ContentTime fade_in () const { + boost::optional<ContentTime> fade_in () const { boost::mutex::scoped_lock lm (_mutex); return _fade_in; } - ContentTime fade_out () const { + boost::optional<ContentTime> fade_out () const { boost::mutex::scoped_lock lm (_mutex); return _fade_out; } @@ -194,8 +196,8 @@ private: boost::optional<dcp::Colour> _effect_colour; /** scaling factor for line spacing; 1 is "standard", < 1 is closer together, > 1 is further apart */ double _line_spacing; - ContentTime _fade_in; - ContentTime _fade_out; + boost::optional<ContentTime> _fade_in; + boost::optional<ContentTime> _fade_out; int _outline_width; }; |
