diff --git a/src/common/QskAspect.h b/src/common/QskAspect.h index 2fc0d43e..58a2faa1 100644 --- a/src/common/QskAspect.h +++ b/src/common/QskAspect.h @@ -180,6 +180,7 @@ namespace QskAspect constexpr State state() const noexcept; State topState() const noexcept; + void setState( State ) noexcept; void addState( State ) noexcept; void clearState( State ) noexcept; void clearStates() noexcept; @@ -364,6 +365,11 @@ namespace QskAspect return static_cast< State >( m_bits.states ); } + inline void Aspect::setState( State state ) noexcept + { + m_bits.states = state; + } + inline void Aspect::addState( State state ) noexcept { m_bits.states |= state;