summaryrefslogtreecommitdiff
path: root/src/lib/text_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-06-21 22:33:02 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-19 23:36:56 +0100
commit491edba4e79656a045103a284c65b846a167d2ff (patch)
treec11e2a9f7b7f097a2320f2b6a21e69a1aab9b581 /src/lib/text_content.h
parent26acd1ec8426d8be48c37ca20b3af26b4bc73fa7 (diff)
Add type for text content (CCAP/subtitle).
Diffstat (limited to 'src/lib/text_content.h')
-rw-r--r--src/lib/text_content.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/text_content.h b/src/lib/text_content.h
index 941184388..cb3bb5ee4 100644
--- a/src/lib/text_content.h
+++ b/src/lib/text_content.h
@@ -46,6 +46,7 @@ public:
static int const FADE_IN;
static int const FADE_OUT;
static int const OUTLINE_WIDTH;
+ static int const TYPE;
};
/** @class TextContent
@@ -85,6 +86,7 @@ public:
void set_fade_out (ContentTime);
void set_outline_width (int);
void unset_fade_out ();
+ void set_type (TextType type);
bool use () const {
boost::mutex::scoped_lock lm (_mutex);
@@ -161,6 +163,11 @@ public:
return _outline_width;
}
+ TextType type () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _type;
+ }
+
static boost::shared_ptr<TextContent> from_xml (Content* parent, cxml::ConstNodePtr, int version);
protected:
@@ -199,6 +206,7 @@ private:
boost::optional<ContentTime> _fade_in;
boost::optional<ContentTime> _fade_out;
int _outline_width;
+ TextType _type;
};
#endif