diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-22 17:33:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-22 17:33:43 +0100 |
| commit | 78979cc6ad60c03bfc2e3757722d8e18d670a4c3 (patch) | |
| tree | 662e7bb91ad3cd7b06b4c7260dd449e7d151a8ef /src/subtitle_asset.h | |
| parent | b4a004619216df74aaac99a67ccc25d5547926ee (diff) | |
Very slightly less verbose subs checking.
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 662f85f1..72563470 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -151,6 +151,10 @@ public: return _fade_down_time; } + int size () const { + return _size; + } + int size_in_pixels (int screen_height) const; private: @@ -169,6 +173,9 @@ private: Time _fade_down_time; }; +bool operator== (Subtitle const & a, Subtitle const & b); +std::ostream& operator<< (std::ostream& s, Subtitle const & sub); + class SubtitleAsset : public Asset, public XMLFile { public: @@ -185,6 +192,9 @@ public: } std::list<boost::shared_ptr<Subtitle> > subtitles_at (Time t) const; + std::list<boost::shared_ptr<Subtitle> > const & subtitles () const { + return _subtitles; + } private: std::string font_id_to_name (std::string id) const; |
