Added get functions for high contrast mode fields.

This commit is contained in:
Maciej Suminski 2013-09-17 11:19:15 +02:00
parent ab21124b71
commit 3d0753c920
1 changed files with 30 additions and 0 deletions

View File

@ -80,6 +80,16 @@ public:
m_activeLayers.erase( aLayerId ); m_activeLayers.erase( aLayerId );
} }
/**
* Function GetActiveLayers()
* Returns the set of currently active layers.
* @return The set of currently active layers.
*/
const std::set<unsigned int> GetActiveLayers()
{
return m_activeLayers;
}
/** /**
* Function ClearActiveLayers * Function ClearActiveLayers
* Clears the list of active layers. * Clears the list of active layers.
@ -89,6 +99,16 @@ public:
m_activeLayers.clear(); m_activeLayers.clear();
} }
/**
* Function IsActiveLayer
* Returns information whether the queried layer is marked as active.
* @return True if the queried layer is marked as active.
*/
inline bool IsActiveLayer( int aLayerId ) const
{
return ( m_activeLayers.count( aLayerId ) > 0 );
}
/** /**
* Function SetHighlight * Function SetHighlight
* Turns on/off highlighting - it may be done for the active layer or the specified net. * Turns on/off highlighting - it may be done for the active layer or the specified net.
@ -114,6 +134,16 @@ public:
m_hiContrastEnabled = aEnabled; m_hiContrastEnabled = aEnabled;
} }
/**
* Function GetHighContrast
* Returns information about high contrast display mode.
* @return True if the high contrast mode is on, false otherwise.
*/
inline bool GetHighContrast() const
{
return m_hiContrastEnabled;
}
/** /**
* Function GetColor * Function GetColor
* Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer * Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer