Use an enum class for Marker.
[libdcp.git] / src / subtitle.h
index ed63983ff7e225ebf1864568cfe545e1e2b12f42..17e3f92f0383731a4898a5b475b3c1ede72b80e6 100644 (file)
@@ -45,23 +45,14 @@ namespace dcp {
 class Subtitle
 {
 public:
-       Subtitle (
-               Time in,
-               Time out,
-               float h_position,
-               HAlign h_align,
-               float v_position,
-               VAlign v_align,
-               Time fade_up_time,
-               Time fade_down_time
-               );
-
        virtual ~Subtitle () {}
 
+       /** @return subtitle start time (relative to the start of the reel) */
        Time in () const {
                return _in;
        }
 
+       /** @return subtitle finish time (relative to the start of the reel) */
        Time out () const {
                return _out;
        }
@@ -123,6 +114,18 @@ public:
 
 
 protected:
+
+       Subtitle (
+               Time in,
+               Time out,
+               float h_position,
+               HAlign h_align,
+               float v_position,
+               VAlign v_align,
+               Time fade_up_time,
+               Time fade_down_time
+               );
+
        Time _in;
        Time _out;
        /** Horizontal position as a proportion of the screen width from the _h_align