From 3ec8616aa76390280c7b51696b731a85e070de0f Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 9 Apr 2012 18:09:28 +0200 Subject: 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 --- src/menu/text.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/menu/text.hpp') 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 object out of an FTBBox. This is + * used for converting the BBox from ftgl to the common internal format. + */ + static Rectangle makeRect(const FTBBox& bbox); + + protected: virtual void draw(void); -- cgit v1.2.3