#include "types.h"
#include "dcp_time.h"
+#include <boost/optional.hpp>
#include <string>
namespace dcp {
{
public:
SubtitleString (
- std::string font,
+ boost::optional<std::string> font,
bool italic,
- Color color,
+ Colour colour,
int size,
Time in,
Time out,
VAlign v_align,
std::string text,
Effect effect,
- Color effect_color,
+ Colour effect_colour,
Time fade_up_time,
Time fade_down_time
);
- std::string font () const {
+ /** @return font ID */
+ boost::optional<std::string> font () const {
return _font;
}
return _italic;
}
- Color color () const {
- return _color;
+ Colour colour () const {
+ return _colour;
}
Time in () const {
return _effect;
}
- Color effect_color () const {
- return _effect_color;
+ Colour effect_colour () const {
+ return _effect_colour;
}
Time fade_up_time () const {
}
private:
- /** font name */
- std::string _font;
+ /** font ID */
+ boost::optional<std::string> _font;
/** true if the text is italic */
bool _italic;
/** text colour */
- Color _color;
+ Colour _colour;
/** Size in points as if the screen height is 11 inches, so a 72pt font
* would be 1/11th of the screen height.
*/
VAlign _v_align;
std::string _text;
Effect _effect;
- Color _effect_color;
+ Colour _effect_colour;
Time _fade_up_time;
Time _fade_down_time;
};