diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-20 23:01:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-20 23:01:12 +0100 |
| commit | dc1c279211773ad68cb0348eb802cf5c9594d8dd (patch) | |
| tree | d49cd367d1832ce04bbc041b866835b2463d29d7 /src/lib/subtitle_content.h | |
| parent | 4d54b053b6e9565e026554b1dba31d73a1b492ae (diff) | |
Various subtitle UI tweaks.
Diffstat (limited to 'src/lib/subtitle_content.h')
| -rw-r--r-- | src/lib/subtitle_content.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index 7d4a385c9..b73119bdb 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -28,6 +28,7 @@ public: static int const SUBTITLE_X_OFFSET; static int const SUBTITLE_Y_OFFSET; static int const SUBTITLE_SCALE; + static int const SUBTITLE_USE; }; class SubtitleContent : public virtual Content @@ -39,10 +40,16 @@ public: void as_xml (xmlpp::Node *) const; + void set_subtitle_use (bool); void set_subtitle_x_offset (double); void set_subtitle_y_offset (double); void set_subtitle_scale (double); + bool subtitle_use () const { + boost::mutex::scoped_lock lm (_mutex); + return _subtitle_use; + } + double subtitle_x_offset () const { boost::mutex::scoped_lock lm (_mutex); return _subtitle_x_offset; @@ -61,6 +68,7 @@ public: private: friend class ffmpeg_pts_offset_test; + bool _subtitle_use; /** x offset for placing subtitles, as a proportion of the container width; * +ve is further right, -ve is further left. */ |
