summaryrefslogtreecommitdiff
path: root/src/horizontal_position.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-28 15:50:26 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-28 15:50:26 +0100
commit9d44328087d41016745ace95e7e989135056149b (patch)
tree9b7208d6364a949ded183ff380c54602075a26ca /src/horizontal_position.h
parent084eff7331b1a7c9923282c5860f490648ad633a (diff)
Make HorizontalPosition a class containing a reference enum.
Diffstat (limited to 'src/horizontal_position.h')
-rw-r--r--src/horizontal_position.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/horizontal_position.h b/src/horizontal_position.h
index df592d9..1f4b161 100644
--- a/src/horizontal_position.h
+++ b/src/horizontal_position.h
@@ -20,15 +20,18 @@
#ifndef LIBSUB_HORIZONTAL_POSITION_H
#define LIBSUB_HORIZONTAL_POSITION_H
+#include "horizontal_reference.h"
+
namespace sub {
-enum HorizontalPosition
+class HorizontalPosition
{
- LEFT,
- CENTRE,
- RIGHT
+public:
+ HorizontalReference reference;
+
+ bool operator== (HorizontalPosition const & other) const;
};
-
+
}
#endif