More added or not clarification in GUI engine

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8309 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-04-12 20:31:06 +00:00
parent 13ed204b56
commit 2c2ea81e93
2 changed files with 7 additions and 1 deletions

View File

@ -298,6 +298,7 @@ void Widget::move(const int x, const int y, const int w, const int h)
m_w = w;
m_h = h;
if (m_element != NULL)
m_element->setRelativePosition( core::rect < s32 > (x, y, x+w, y+h) );
}

View File

@ -511,6 +511,11 @@ namespace GUIEngine
/**
* \brief removes and deletes the child with the given PROP_ID
* \param id PROP_ID property of the child to remove
*
* \note If the widget has been add()ed, it is moved immediately;
* if the widget is not currently visible, it will take the
* new position next time it is add()ed.
*
* \return whether deletion was successful
*/
bool deleteChild(const char* id);