Canvas: add method clearFocusElement.

This commit is contained in:
Thomas Geymayer 2014-08-25 21:49:21 +02:00
parent e1791b3006
commit 4f94c22241
3 changed files with 13 additions and 1 deletions

View File

@ -212,6 +212,12 @@ namespace canvas
_focus_element = el;
}
//----------------------------------------------------------------------------
void Canvas::clearFocusElement()
{
_focus_element.reset();
}
//----------------------------------------------------------------------------
void Canvas::enableRendering(bool force)
{

View File

@ -145,6 +145,13 @@ namespace canvas
*/
void setFocusElement(const ElementPtr& el);
/**
* Clear the focus element.
*
* @see setFocusElement()
*/
void clearFocusElement();
/**
* Enable rendering for the next frame
*

View File

@ -28,7 +28,6 @@ namespace simgear
{
namespace canvas
{
class TextLine;
class Text::TextOSG:
public osgText::Text
{