setState added
This commit is contained in:
parent
34b94f1181
commit
549031fe78
|
@ -180,6 +180,7 @@ namespace QskAspect
|
||||||
constexpr State state() const noexcept;
|
constexpr State state() const noexcept;
|
||||||
State topState() const noexcept;
|
State topState() const noexcept;
|
||||||
|
|
||||||
|
void setState( State ) noexcept;
|
||||||
void addState( State ) noexcept;
|
void addState( State ) noexcept;
|
||||||
void clearState( State ) noexcept;
|
void clearState( State ) noexcept;
|
||||||
void clearStates() noexcept;
|
void clearStates() noexcept;
|
||||||
|
@ -364,6 +365,11 @@ namespace QskAspect
|
||||||
return static_cast< State >( m_bits.states );
|
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
|
inline void Aspect::addState( State state ) noexcept
|
||||||
{
|
{
|
||||||
m_bits.states |= state;
|
m_bits.states |= state;
|
||||||
|
|
Loading…
Reference in New Issue