summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-21 21:38:37 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-21 21:38:37 +0100
commitfd23bf276facab3892a00f010ac7e991bc79af09 (patch)
tree2ee3c0e6cfd318bfc14c5fca7c29c9031a570a69 /src/subtitle_asset.h
parent3541f4c9bd91169e55a82b9fa46767b46ca06188 (diff)
Pick up effect and effect color.
Diffstat (limited to 'src/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h
index 02dea865..d3f9fa9b 100644
--- a/src/subtitle_asset.h
+++ b/src/subtitle_asset.h
@@ -56,6 +56,8 @@ public:
int size;
boost::optional<bool> italic;
boost::optional<Color> color;
+ std::string effect;
+ boost::optional<Color> effect_color;
std::list<boost::shared_ptr<SubtitleNode> > subtitle_nodes;
std::list<boost::shared_ptr<FontNode> > font_nodes;
@@ -82,7 +84,9 @@ public:
Time in,
Time out,
float v_position,
- std::string text
+ std::string text,
+ std::string effect,
+ Color effect_color
);
std::string font () const {
@@ -113,6 +117,14 @@ public:
return _v_position;
}
+ std::string effect () const {
+ return _effect;
+ }
+
+ Color effect_color () const {
+ return _effect_color;
+ }
+
int size_in_pixels (int screen_height) const;
private:
@@ -124,6 +136,8 @@ private:
Time _out;
float _v_position;
std::string _text;
+ std::string _effect;
+ Color _effect_color;
};
class SubtitleAsset : public Asset, public XMLFile