From 491edba4e79656a045103a284c65b846a167d2ff Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 21 Jun 2018 22:33:02 +0100 Subject: Add type for text content (CCAP/subtitle). --- src/lib/text_content.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/text_content.h') 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 from_xml (Content* parent, cxml::ConstNodePtr, int version); protected: @@ -199,6 +206,7 @@ private: boost::optional _fade_in; boost::optional _fade_out; int _outline_width; + TextType _type; }; #endif -- cgit v1.2.3