diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-24 12:24:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-24 12:24:16 +0100 |
| commit | 715410f7b36075b39d712479476e83a28042ed7e (patch) | |
| tree | 46615302452a954c9d1593b1ba16a705380ad933 /src/subtitle_string.h | |
| parent | 2c8270716ac21c05b5f7ce0e45096a1e9e62a619 (diff) | |
Support underlining of subtitles.
Diffstat (limited to 'src/subtitle_string.h')
| -rw-r--r-- | src/subtitle_string.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/subtitle_string.h b/src/subtitle_string.h index b16f764b..51b37564 100644 --- a/src/subtitle_string.h +++ b/src/subtitle_string.h @@ -55,6 +55,7 @@ public: boost::optional<std::string> font, bool italic, bool bold, + bool underline, Colour colour, int size, float aspect_adjust, @@ -85,6 +86,10 @@ public: return _bold; } + bool underline () const { + return _underline; + } + Colour colour () const { return _colour; } @@ -189,6 +194,8 @@ private: bool _italic; /** true if the weight is bold, false for normal */ bool _bold; + /** true to enable underlining, false otherwise */ + bool _underline; /** text colour */ Colour _colour; /** Size in points as if the screen height is 11 inches, so a 72pt font |
