summaryrefslogtreecommitdiff
path: root/src/subtitle.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-24 04:15:26 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-24 04:15:26 +0100
commitceaf7bc52712cb60708ed5eb5c62c5e463dd8e89 (patch)
treec55e4b85ee30138ce83263045d77d01631378b2e /src/subtitle.h
parent6c37cc1979b2a01205a888c4c98f3334685ee8dd (diff)
Tidying.
Diffstat (limited to 'src/subtitle.h')
-rw-r--r--src/subtitle.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/subtitle.h b/src/subtitle.h
index 17e3f92f..8beca192 100644
--- a/src/subtitle.h
+++ b/src/subtitle.h
@@ -31,17 +31,22 @@
files in the program, then also delete it here.
*/
+
#ifndef LIBDCP_SUBTITLE_H
#define LIBDCP_SUBTITLE_H
+
/** @file src/subtitle.h
- * @brief Subtitle class.
+ * @brief Subtitle class
*/
+
#include "dcp_time.h"
+
namespace dcp {
+
class Subtitle
{
public:
@@ -131,17 +136,19 @@ protected:
/** Horizontal position as a proportion of the screen width from the _h_align
* (between 0 and 1)
*/
- float _h_position;
- HAlign _h_align;
+ float _h_position = 0;
+ HAlign _h_align = HAlign::CENTER;
/** Vertical position as a proportion of the screen height from the _v_align
* (between 0 and 1)
*/
- float _v_position;
- VAlign _v_align;
+ float _v_position = 0;
+ VAlign _v_align = VAlign::CENTER;
Time _fade_up_time;
Time _fade_down_time;
};
+
}
+
#endif