MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::NumericControlSlot Concept Reference

A ControlSlot that also reads as a number, which the named access and the scale mirror need. More...

#include <ControlValueStore.hpp>

Concept definition

template<typename S>
concept MayaFlux::NumericControlSlot = ControlSlot<S> && requires(S slot, double number) {
{ slot.width() } -> std::convertible_to<size_t>;
{ slot.value() } -> std::convertible_to<double>;
{ slot.pending() } -> std::same_as<std::optional<double>>;
slot.observe(number);
S(number);
}
What ControlValueStore needs of the slot type it owns.
A ControlSlot that also reads as a number, which the named access and the scale mirror need.

Detailed Description

A ControlSlot that also reads as a number, which the named access and the scale mirror need.

It reports width, reads as a double, hands out a pending value once per change, is shown the owner's real value with observe, and is made from a number. ControlValue and anything derived from it qualify.

Definition at line 32 of file ControlValueStore.hpp.