VIEW: added GetTopLayer() method

This commit is contained in:
tomasz.wlostowski@cern.ch 2013-09-18 13:14:57 +02:00
parent 23298886a1
commit dea793209d
2 changed files with 10 additions and 0 deletions

View File

@ -452,6 +452,14 @@ void VIEW::ChangeLayerDepth( int aLayer, int aDepth )
m_layers[aLayer].items->Query( r, visitor );
}
int VIEW::GetTopLayer( ) const
{
if( m_topLayers.size() == 0 )
return 0;
return *m_topLayers.begin();
}
void VIEW::SetTopLayer( int aLayer, bool aEnabled )
{

View File

@ -362,6 +362,8 @@ public:
*/
void EnableTopLayer( bool aEnable );
int GetTopLayer() const;
/**
* Function ClearTopLayers()
* Removes all layers from the on-the-top set (they are no longer displayed over the rest of