summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-15 16:56:18 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-15 16:56:18 +0000
commita5902c6008fd20392c7248c30bc469310122c527 (patch)
tree8b2712fd09a64c4ca3ea01f2d6304f39837abddd /src/lib/subtitle_content.h
parent99dc00531b985aa1efa23bec5a00b1a5ad26e86c (diff)
Start of Fonts dialog for setting up subtitle fonts.
Diffstat (limited to 'src/lib/subtitle_content.h')
-rw-r--r--src/lib/subtitle_content.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h
index 4cbef657a..e8915fc96 100644
--- a/src/lib/subtitle_content.h
+++ b/src/lib/subtitle_content.h
@@ -22,6 +22,8 @@
#include "content.h"
+class Font;
+
class SubtitleContentProperty
{
public:
@@ -31,6 +33,7 @@ public:
static int const SUBTITLE_Y_SCALE;
static int const USE_SUBTITLES;
static int const SUBTITLE_LANGUAGE;
+ static int const FONTS;
};
/** @class SubtitleContent
@@ -84,13 +87,20 @@ public:
return _subtitle_y_scale;
}
+ std::list<boost::shared_ptr<Font> > fonts () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _fonts;
+ }
+
std::string subtitle_language () const {
+ boost::mutex::scoped_lock lm (_mutex);
return _subtitle_language;
}
protected:
/** subtitle language (e.g. "German") or empty if it is not known */
std::string _subtitle_language;
+ std::list<boost::shared_ptr<Font> > _fonts;
private:
friend struct ffmpeg_pts_offset_test;