Canvas: add method clearFocusElement.
This commit is contained in:
parent
e1791b3006
commit
4f94c22241
@ -212,6 +212,12 @@ namespace canvas
|
||||
_focus_element = el;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void Canvas::clearFocusElement()
|
||||
{
|
||||
_focus_element.reset();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void Canvas::enableRendering(bool force)
|
||||
{
|
||||
|
@ -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
|
||||
*
|
||||
|
@ -28,7 +28,6 @@ namespace simgear
|
||||
{
|
||||
namespace canvas
|
||||
{
|
||||
class TextLine;
|
||||
class Text::TextOSG:
|
||||
public osgText::Text
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user