diff options
Diffstat (limited to 'src/font_size.h')
| -rw-r--r-- | src/font_size.h | 5 |
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 */ |
