diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-13 23:04:11 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-13 23:04:11 +0000 |
| commit | f1ba458a19a9b998ecdb1db726106876953abcc0 (patch) | |
| tree | 1e414103fec758275f92dff3b7973cc02dbf39a3 /src/font_size.h | |
| parent | d15ef17dccf87b633d1971c38032a2049abe3db0 (diff) | |
Various development / fixes.rework
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 */ |
