summaryrefslogtreecommitdiff
path: root/src/font_size.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-13 23:04:11 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-13 23:04:11 +0000
commitf1ba458a19a9b998ecdb1db726106876953abcc0 (patch)
tree1e414103fec758275f92dff3b7973cc02dbf39a3 /src/font_size.h
parentd15ef17dccf87b633d1971c38032a2049abe3db0 (diff)
Various development / fixes.rework
Diffstat (limited to 'src/font_size.h')
-rw-r--r--src/font_size.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/font_size.h b/src/font_size.h
index 0b4b357..6c3a284 100644
--- a/src/font_size.h
+++ b/src/font_size.h
@@ -20,6 +20,8 @@
#ifndef LIBSUB_FONT_SIZE_H
#define LIBSUB_FONT_SIZE_H
+#include <boost/optional.hpp>
+
namespace sub {
/** @class FontSize
@@ -48,7 +50,10 @@ public:
}
float proportional (int screen_height_in_points) const;
+ int pixels (int screen_height_in_points) const;
int points (int screen_height_in_points) const;
+
+ bool operator== (FontSize const & other) const;
private:
/** as a proportion of screen height */