summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h10
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;