X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsubtitle_asset.h;h=d3f9fa9b6ca95ed9ea1709bdb6434f397d140f02;hb=fd23bf276facab3892a00f010ac7e991bc79af09;hp=02dea865d850c5fcb524d2aab75059b7dd2fdf95;hpb=e8bb753ea7f1dfe2dac761050f47ea1cb786f01b;p=libdcp.git 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 italic; boost::optional color; + std::string effect; + boost::optional effect_color; std::list > subtitle_nodes; std::list > 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