VIEW: added GetTopLayer() method

parent 23298886
...@@ -452,6 +452,14 @@ void VIEW::ChangeLayerDepth( int aLayer, int aDepth ) ...@@ -452,6 +452,14 @@ void VIEW::ChangeLayerDepth( int aLayer, int aDepth )
m_layers[aLayer].items->Query( r, visitor ); 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 ) void VIEW::SetTopLayer( int aLayer, bool aEnabled )
{ {
......
...@@ -362,6 +362,8 @@ public: ...@@ -362,6 +362,8 @@ public:
*/ */
void EnableTopLayer( bool aEnable ); void EnableTopLayer( bool aEnable );
int GetTopLayer() const;
/** /**
* Function ClearTopLayers() * Function ClearTopLayers()
* Removes all layers from the on-the-top set (they are no longer displayed over the rest of * Removes all layers from the on-the-top set (they are no longer displayed over the rest of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment