This commit is contained in:
parent
9bc47a36d2
commit
3a59634c25
2 changed files with 28 additions and 3 deletions
|
@ -98,6 +98,30 @@ void CGUITextBox::render()
|
|||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
int CGUITextBox::getTextWidth()
|
||||
{
|
||||
return getFontBank()->getStringWidth((char*)TranslationDatabase::getString(getTextId()));
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
int CGUITextBox::getTextHeight()
|
||||
{
|
||||
return getFontBank()->getStringHeight((char*)TranslationDatabase::getString(getTextId()));
|
||||
}
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue