Missing include.
[dcpomatic.git] / src / lib / subtitle_content.h
index 2aa33f1727f9ec47c24bee577d34b7c544c1c873..c8492b91a32359c3eea8262cb00a3e32d516ba90 100644 (file)
@@ -41,7 +41,9 @@ public:
        static int const FONTS;
        static int const COLOUR;
        static int const OUTLINE;
-       static int const OUTLINE_COLOUR;
+       static int const SHADOW;
+       static int const EFFECT_COLOUR;
+       static int const LINE_SPACING;
 };
 
 /** @class SubtitleContent
@@ -123,11 +125,25 @@ public:
                return _outline;
        }
 
-       void set_outline_colour (dcp::Colour);
+       void set_shadow (bool);
 
-       dcp::Colour outline_colour () const {
+       bool shadow () const {
                boost::mutex::scoped_lock lm (_mutex);
-               return _outline_colour;
+               return _shadow;
+       }
+
+       void set_effect_colour (dcp::Colour);
+
+       dcp::Colour effect_colour () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _effect_colour;
+       }
+
+       void set_line_spacing (double s);
+
+       double line_spacing () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _line_spacing;
        }
 
        static boost::shared_ptr<SubtitleContent> from_xml (Content* parent, cxml::ConstNodePtr, int version);
@@ -160,8 +176,11 @@ private:
        std::list<boost::shared_ptr<Font> > _fonts;
        dcp::Colour _colour;
        bool _outline;
-       dcp::Colour _outline_colour;
+       bool _shadow;
+       dcp::Colour _effect_colour;
        std::list<boost::signals2::connection> _font_connections;
+       /** scaling factor for line spacing; 1 is "standard", < 1 is closer together, > 1 is further apart */
+       double _line_spacing;
 };
 
 #endif