summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-21 18:32:11 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-21 18:32:11 +0100
commite8bb753ea7f1dfe2dac761050f47ea1cb786f01b (patch)
tree514f2e1043e34b5e2233642d075b31fd6d1812f4 /src/subtitle_asset.h
parent3fc1eba823a52603aa58f3df6f08dc4e73309c63 (diff)
Pick up subtitle color.
Diffstat (limited to 'src/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h
index 3df30e62..02dea865 100644
--- a/src/subtitle_asset.h
+++ b/src/subtitle_asset.h
@@ -55,6 +55,7 @@ public:
std::string id;
int size;
boost::optional<bool> italic;
+ boost::optional<Color> color;
std::list<boost::shared_ptr<SubtitleNode> > subtitle_nodes;
std::list<boost::shared_ptr<FontNode> > font_nodes;
@@ -76,6 +77,7 @@ public:
Subtitle (
std::string font,
bool italic,
+ Color color,
int size,
Time in,
Time out,
@@ -91,6 +93,10 @@ public:
return _italic;
}
+ Color color () const {
+ return _color;
+ }
+
Time in () const {
return _in;
}
@@ -112,6 +118,7 @@ public:
private:
std::string _font;
bool _italic;
+ Color _color;
int _size;
Time _in;
Time _out;