summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-08 01:30:39 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-08 01:48:50 +0100
commitac2fa2172c30c234a19628d7a9ae696e435a56db (patch)
treec9cfc40955708732ee1f7ad5e0d23feb099cc607 /src/lib/subtitle_content.h
parent61f81caacd7d45ace5c1a52c1f7b4f8afac5eb80 (diff)
Support shadow in subtitles (#911).
Diffstat (limited to 'src/lib/subtitle_content.h')
-rw-r--r--src/lib/subtitle_content.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h
index 6665f563a..c8492b91a 100644
--- a/src/lib/subtitle_content.h
+++ b/src/lib/subtitle_content.h
@@ -41,7 +41,8 @@ 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;
};
@@ -124,11 +125,18 @@ 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);
@@ -168,7 +176,8 @@ 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;