diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-28 18:45:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-01 01:05:06 +0100 |
| commit | 4593ab6ba39ff188bcf57ef5e69d0c69f454e0b6 (patch) | |
| tree | 38c053fe07ee578ac5db1478967e27e7024d28b3 /src/lib/subtitle_content.h | |
| parent | b8693a3bf32380733604aa6e80c9774de575ebe7 (diff) | |
Add line-spacing property to SubtitleContent.
Diffstat (limited to 'src/lib/subtitle_content.h')
| -rw-r--r-- | src/lib/subtitle_content.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/subtitle_content.h b/src/lib/subtitle_content.h index 2aa33f172..6665f563a 100644 --- a/src/lib/subtitle_content.h +++ b/src/lib/subtitle_content.h @@ -42,6 +42,7 @@ public: static int const COLOUR; static int const OUTLINE; static int const OUTLINE_COLOUR; + static int const LINE_SPACING; }; /** @class SubtitleContent @@ -130,6 +131,13 @@ public: return _outline_colour; } + void set_line_spacing (double s); + + double line_spacing () const { + boost::mutex::scoped_lock lm (_mutex); + return _line_spacing; + } + static boost::shared_ptr<SubtitleContent> from_xml (Content* parent, cxml::ConstNodePtr, int version); protected: @@ -162,6 +170,8 @@ private: bool _outline; dcp::Colour _outline_colour; std::list<boost::signals2::connection> _font_connections; + /** scaling factor for line spacing; 1 is "standard", < 1 is closer together, > 1 is further apart */ + double _line_spacing; }; #endif |
