float aspect_adjust,
Time in,
Time out,
+ float h_position,
+ HAlign h_align,
float v_position,
VAlign v_align,
std::string text,
return _text;
}
+ float h_position () const {
+ return _h_position;
+ }
+
+ HAlign h_align () const {
+ return _h_align;
+ }
+
/** @return vertical position as a proportion of the screen height from the top
* (between 0 and 1)
*/
return _aspect_adjust;
}
+ void set_h_position (float p) {
+ _h_position = p;
+ }
+
/** @param p New vertical position as a proportion of the screen height
* from the top (between 0 and 1)
*/
_size = s;
}
+ void set_aspect_adjust (float a) {
+ _aspect_adjust = a;
+ }
+
private:
/** font ID */
boost::optional<std::string> _font;
Colour _colour;
/** Size in points as if the screen height is 11 inches, so a 72pt font
* would be 1/11th of the screen height.
- */
+ */
int _size;
float _aspect_adjust;
Time _in;
Time _out;
+ /** Horizontal position as a proportion of the screen width from the _h_align
+ * (between 0 and 1)
+ */
+ float _h_position;
+ HAlign _h_align;
/** Vertical position as a proportion of the screen height from the _v_align
* (between 0 and 1)
*/