[DEV] add the state in the shaper (need validate)

This commit is contained in:
Edouard DUPIN 2016-01-29 23:55:36 +01:00
parent 01a9d6b1c5
commit e20efd56e2
2 changed files with 15 additions and 0 deletions

View File

@ -216,6 +216,14 @@ void ewol::compositing::Shaper::clear() {
memset(m_coord, 0, sizeof(m_coord));
}
bool ewol::compositing::Shaper::setState(int32_t _newState) {
if (m_stateActivate == _newState) {
return false;
}
m_stateActivate = _newState;
return true;
}
bool ewol::compositing::Shaper::changeStatusIn(int32_t _newStatusId) {
if (_newStatusId != m_stateNew) {
m_nextStatusRequested = _newStatusId;

View File

@ -110,6 +110,13 @@ namespace ewol {
* @brief clear alll tre registered element in the current element
*/
void clear();
/**
* @brief Change the current state
* @param[in] _newState Current state of the configuration
* @return true Need redraw.
* @return false No need redraw.
*/
bool setState(int32_t _newState);
/**
* @brief change the current status in an other
* @param[in] _newStatusId the next new status requested