[DEV] add the state in the shaper (need validate)
This commit is contained in:
parent
01a9d6b1c5
commit
e20efd56e2
@ -216,6 +216,14 @@ void ewol::compositing::Shaper::clear() {
|
|||||||
memset(m_coord, 0, sizeof(m_coord));
|
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) {
|
bool ewol::compositing::Shaper::changeStatusIn(int32_t _newStatusId) {
|
||||||
if (_newStatusId != m_stateNew) {
|
if (_newStatusId != m_stateNew) {
|
||||||
m_nextStatusRequested = _newStatusId;
|
m_nextStatusRequested = _newStatusId;
|
||||||
|
@ -110,6 +110,13 @@ namespace ewol {
|
|||||||
* @brief clear alll tre registered element in the current element
|
* @brief clear alll tre registered element in the current element
|
||||||
*/
|
*/
|
||||||
void clear();
|
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
|
* @brief change the current status in an other
|
||||||
* @param[in] _newStatusId the next new status requested
|
* @param[in] _newStatusId the next new status requested
|
||||||
|
Loading…
x
Reference in New Issue
Block a user