20 #ifndef LIBSUB_SUBTITLE_H
21 #define LIBSUB_SUBTITLE_H
24 #include "vertical_reference.h"
26 #include "font_size.h"
27 #include "vertical_position.h"
28 #include "horizontal_position.h"
29 #include "raw_subtitle.h"
30 #include <boost/optional.hpp>
56 boost::optional<std::string> font;
61 boost::optional<Effect> effect;
62 boost::optional<Colour> effect_colour;
70 extern bool operator== (
Block const & a,
Block const & b);
82 horizontal_position.reference = HORIZONTAL_CENTRE_OF_SCREEN;
93 std::vector<Block> blocks;
98 extern bool operator== (
Line const & a,
Line const & b);
120 boost::optional<Time> fade_up;
121 boost::optional<Time> fade_down;
123 std::vector<Line> lines;
A block of text within a subtitle's line.
Definition: subtitle.h:42
bool italic
true to use an italic version of font
Definition: subtitle.h:66
FontSize font_size
Definition: subtitle.h:59
bool bold
true to use a bold version of font
Definition: subtitle.h:65
bool underline
true to underline
Definition: subtitle.h:67
std::string text
Definition: subtitle.h:55
An RGB colour.
Definition: colour.h:36
A description of a font's size in one of a number of ways.
Definition: font_size.h:34
Definition: horizontal_position.h:28
A line of text within a subtitle.
Definition: subtitle.h:78
VerticalPosition vertical_position
Definition: subtitle.h:91
A bit of a subtitle, created with no regard for any nearby bits.
Definition: raw_subtitle.h:40
A subtitle which has been collected into lines and blocks.
Definition: subtitle.h:107
Time from
Definition: subtitle.h:116
Time to
Definition: subtitle.h:118
Definition: sub_time.h:29
Vertical position of the baseline of some text, expressed in one of a number of ways.
Definition: vertical_position.h:32