summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-16 13:18:15 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-16 13:18:15 +0100
commit96c40e880ccba4bf9ec163ea5ff60cbe1e823f2d (patch)
treebf541a05cbd2a282cad912f607b72a0f9e35b6c0
parent62449f8a80feb88c17695dd71af4f881f2029dcf (diff)
Comment and header guards.
-rw-r--r--src/subtitle_asset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h
index d43406d2..6d6186a0 100644
--- a/src/subtitle_asset.h
+++ b/src/subtitle_asset.h
@@ -17,6 +17,9 @@
*/
+#ifndef LIBDCP_SUBTITLE_ASSET_H
+#define LIBDCP_SUBTITLE_ASSET_H
+
#include <libcxml/cxml.h>
#include "asset.h"
#include "dcp_time.h"
@@ -115,6 +118,9 @@ private:
int _size;
Time _in;
Time _out;
+ /** Vertical position as a proportion of the screen height from the top
+ * (between 0 and 1)
+ */
float _v_position;
VAlign _v_align;
std::string _text;
@@ -189,3 +195,5 @@ private:
};
}
+
+#endif