Added 'isVisible' method.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7389 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-01-13 06:00:19 +00:00
parent 580ab70001
commit 946526662a

View File

@ -289,6 +289,9 @@ namespace GUIEngine
* undefined behavior may ensue (like invisible but clickable buttons).
*/
void setVisible(bool visible);
/** Returns if the element is visible. */
bool isVisible() const {return m_element && m_element->isVisible(); }
/**
* Call to resize/move the widget. Not all widgets can resize gracefully.