projects
/
libsub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add FIXME.
[libsub.git]
/
src
/
font_size.h
diff --git
a/src/font_size.h
b/src/font_size.h
index 6439c8f7d114a44297491062ff672e56ecb00ceb..eeb09ef2d890a126aebdd7705e7c231629b72568 100644
(file)
--- a/
src/font_size.h
+++ b/
src/font_size.h
@@
-49,9
+49,14
@@
public:
return _points;
}
return _points;
}
+ bool specified () const;
+
float proportional (int screen_height_in_points) const;
int points (int screen_height_in_points) const;
float proportional (int screen_height_in_points) const;
int points (int screen_height_in_points) const;
+ static FontSize from_points (int p);
+ static FontSize from_proportional (float p);
+
private:
/** as a proportion of screen height */
boost::optional<float> _proportional;
private:
/** as a proportion of screen height */
boost::optional<float> _proportional;
@@
-60,6
+65,8
@@
private:
};
};
+extern bool operator== (FontSize const & a, FontSize const & b);
+
}
#endif
}
#endif