|
| bool | isDebouncing () const |
| | Returns whether the signal is currently holding back incoming emits.
|
| bool | setDebouncing (bool v) |
| | While enabled, the signal will hold back emits until debouncing mode is disabled and then perform a single combined emit if emits were held back.
|
|
|
bool | m_wasTriggered = false |
|
bool | m_debouncing = false |
◆ isDebouncing()
template<class DerivedSignal>
Returns whether the signal is currently holding back incoming emits.
- See also
- setDebouncing for a complete explanation of what this implies. \experimental
◆ setDebouncing()
template<class DerivedSignal>
While enabled, the signal will hold back emits until debouncing mode is disabled and then perform a single combined emit if emits were held back.
This avoids notifying listeners multiple times in scenarios where a single time would be sufficient. Unlike blocking and emitting afterwards, the combined emit only happens if the signal actually was requested to emit while debouncing was enabled. If a signal is both blocking and debouncing at the same time, the debouncing has no effect. \experimental
The documentation for this class was generated from the following file: