#ifndef LIBSUB_HORIZONTAL_POSITION_H
#define LIBSUB_HORIZONTAL_POSITION_H
+#include "horizontal_reference.h"
+
namespace sub {
-enum HorizontalPosition
+class HorizontalPosition
{
- LEFT,
- CENTRE,
- RIGHT
+public:
+ HorizontalPosition ()
+ : reference(HORIZONTAL_CENTRE_OF_SCREEN)
+ , proportional(0)
+ {}
+
+ HorizontalReference reference;
+ /** proportion of screen width offset from reference */
+ float proportional;
+
+ bool operator== (HorizontalPosition const & other) const;
};
-
+
}
#endif