first gui stuff

This commit is contained in:
Eduardo Bart
2011-04-08 02:10:00 -03:00
parent 8a33e0cf19
commit 4c6d1269a0
28 changed files with 863 additions and 63 deletions

View File

@@ -43,7 +43,7 @@ enum EAlign {
ALIGN_BOTTOM_RIGHT = ALIGN_BOTTOM | ALIGN_RIGHT,
ALIGN_BOTTOM_LEFT = ALIGN_BOTTOM | ALIGN_LEFT
};
class Font
{
public:
@@ -71,12 +71,7 @@ public:
Point *calculateGlyphsPositions(const std::string& text, int align = ALIGN_TOP_LEFT, Size *textBoxSize = NULL);
/// Simulate render and calculate text size
Size calculateTextBoxSize(const std::string& text);
/*
/// Render a text inside a rect
void renderText(const Rect& screenCoords, EAlign align, const std::string& text);
*/
Size calculateTextRectSize(const std::string& text);
private:
int m_lineHeight;