Fix WebVTT milliseconds separator (should be . it seems, not ,)
[libsub.git] / src / vertical_position.h
index 1d0b9394dc8e933861621cc89bfdf4316dcabd02..7bc057ee132f7d0b76404b488f185a746684865c 100644 (file)
@@ -35,13 +35,17 @@ public:
        boost::optional<float> proportional;
        /** line number offset from some reference point */
        boost::optional<int> line;
+       /** number of lines on the whole screen (i.e. height of the screen in lines) */
+       boost::optional<int> lines;
        /** reference point */
        boost::optional<VerticalReference> reference;
-       
+
        bool operator== (VerticalPosition const & other) const;
-       
+       bool operator< (VerticalPosition const & other) const;
+
+       float fraction_from_screen_top () const;
 };
-       
+
 }
 
 #endif