diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-09 18:09:28 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | 3ec8616aa76390280c7b51696b731a85e070de0f (patch) | |
tree | a1f399d1022a39bc2cc03d735b0450756928b0e3 /src/menu/text.hpp | |
parent | 2435e76db6611d9797f607daff321bb6d2bd2322 (diff) | |
download | usdx-3ec8616aa76390280c7b51696b731a85e070de0f.tar.gz usdx-3ec8616aa76390280c7b51696b731a85e070de0f.tar.xz usdx-3ec8616aa76390280c7b51696b731a85e070de0f.zip |
utils/rectangle: removed external constructors and added helper
constructors that generate a rectangle from GLint[4] or FTBBox are now
helper functions to remove the external dependencies from the helper class
Diffstat (limited to 'src/menu/text.hpp')
-rw-r--r-- | src/menu/text.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/menu/text.hpp b/src/menu/text.hpp index b172b2c3..cb8e8dc4 100644 --- a/src/menu/text.hpp +++ b/src/menu/text.hpp @@ -83,6 +83,13 @@ namespace usdx */ void realign(void); + /** + * Helper to create a Rectangle<int> object out of an FTBBox. This is + * used for converting the BBox from ftgl to the common internal format. + */ + static Rectangle<int> makeRect(const FTBBox& bbox); + + protected: virtual void draw(void); |